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

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

204 active golfers, 878 entries

Solutions by @kawkafi:
27
#28 - Dragan Cvetinovic / @kawkafi

05/10/2011 at 10:29PM

31
#>71 - Dragan Cvetinovic / @kawkafi

05/10/2011 at 10:21PM

33
#>83 - Dragan Cvetinovic / @kawkafi

05/10/2011 at 10:18PM

34
#>87 - Dragan Cvetinovic / @kawkafi

05/10/2011 at 10:06PM

39
#>102 - Dragan Cvetinovic / @kawkafi

05/10/2011 at 10:03PM

41
#>121 - Dragan Cvetinovic / @kawkafi

05/10/2011 at 10:00PM

44
#>137 - Dragan Cvetinovic / @kawkafi

05/10/2011 at 09:45PM

44
#>137 - Dragan Cvetinovic / @kawkafi

05/10/2011 at 09:48PM