Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d3c51f1aabf526ed6000030

HTML to Haml

Help convert this HTML page to Haml.

Start file
<html>
 
<head>
   
<title>Vim Rocks!</title>
 
</head>
 
<body>
   
<h1>So does Haml</h1>
 
</body>
</html>
End file
%html
 
%head
   
%title Vim Rocks!
 
%body
   
%h1 So does Haml

View Diff

1,8c1,5
< <html>
<   <head>
<     <title>Vim Rocks!</title>
<   </head>
<   <body>
<     <h1>So does Haml</
h1>
<   </body>
< </
html>
---
> %html
>   %head
>     %title Vim Rocks!
>   %body
>     %h1 So does Haml

Solutions by @_m_ik_o_:

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @bradly

205 active golfers, 881 entries

Solutions by @_m_ik_o_:
27
#42 - Miko / @_m_ik_o_

10/12/2019 at 06:37PM

28
#>48 - Miko / @_m_ik_o_

10/12/2019 at 06:32PM

29
#>50 - Miko / @_m_ik_o_

10/12/2019 at 06:25PM

29
#>50 - Miko / @_m_ik_o_

10/12/2019 at 06:28PM

30
#>58 - Miko / @_m_ik_o_

10/12/2019 at 06:23PM

31
#>74 - Miko / @_m_ik_o_

10/12/2019 at 06:17PM

32
#>79 - Miko / @_m_ik_o_

10/12/2019 at 06:12PM

33
#>85 - Miko / @_m_ik_o_

10/12/2019 at 06:09PM

35
#>89 - Miko / @_m_ik_o_

10/12/2019 at 06:02PM