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

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

197 active golfers, 800 entries

Solutions by @andydorman:
27
#22 - Andrew Dorman / @andydorman

02/16/2011 at 04:37PM

31
#>64 - Andrew Dorman / @andydorman

02/16/2011 at 03:16PM

33
#>79 - Andrew Dorman / @andydorman

02/16/2011 at 02:37PM

37
#>89 - Andrew Dorman / @andydorman

02/16/2011 at 02:30PM

43
#>129 - Andrew Dorman / @andydorman

02/16/2011 at 02:21PM

44
#>131 - Andrew Dorman / @andydorman

02/16/2011 at 01:01PM

45
#>135 - Andrew Dorman / @andydorman

02/16/2011 at 12:58PM

45
#>135 - Andrew Dorman / @andydorman

02/16/2011 at 02:13PM

46
#>142 - Andrew Dorman / @andydorman

02/16/2011 at 11:39AM

46
#>142 - Andrew Dorman / @andydorman

02/16/2011 at 12:19PM

47
#>150 - Andrew Dorman / @andydorman

02/16/2011 at 12:15PM

48
#>154 - Andrew Dorman / @andydorman

02/15/2011 at 10:16PM

48
#>154 - Andrew Dorman / @andydorman

02/16/2011 at 11:37AM

49
#>160 - Andrew Dorman / @andydorman

02/15/2011 at 04:49PM

49
#>160 - Andrew Dorman / @andydorman

02/15/2011 at 09:02PM

51
#>168 - Andrew Dorman / @andydorman

02/15/2011 at 04:45PM

51
#>168 - Andrew Dorman / @andydorman

02/15/2011 at 04:47PM