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 @leeren:

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

202 active golfers, 842 entries

Solutions by @leeren:
27
#37 - LC / @leeren

08/11/2014 at 12:00AM

30
#>53 - LC / @leeren

08/10/2014 at 11:59PM

31
#>71 - LC / @leeren

08/10/2014 at 11:57PM

33
#>83 - LC / @leeren

08/10/2014 at 11:56PM

37
#>92 - LC / @leeren

08/10/2014 at 11:55PM

39
#>105 - LC / @leeren

08/10/2014 at 11:54PM

40
#>115 - LC / @leeren

08/10/2014 at 11:53PM

41
#>122 - LC / @leeren

08/10/2014 at 11:52PM

42
#>129 - LC / @leeren

08/10/2014 at 11:50PM

46
#>150 - LC / @leeren

08/10/2014 at 11:47PM

47
#>157 - LC / @leeren

08/10/2014 at 11:46PM

49
#>168 - LC / @leeren

08/10/2014 at 11:35PM

137
#>201 - LC / @leeren

08/10/2014 at 11:35PM