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

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

197 active golfers, 800 entries

Solutions by @junfeng:
27
#30 - Hu Junfeng / @junfeng

08/01/2011 at 02:16PM

31
#>68 - Hu Junfeng / @junfeng

08/01/2011 at 02:06PM

32
#>72 - Hu Junfeng / @junfeng

08/01/2011 at 02:04PM

38
#>93 - Hu Junfeng / @junfeng

08/01/2011 at 02:00PM

40
#>107 - Hu Junfeng / @junfeng

08/01/2011 at 01:23PM

41
#>116 - Hu Junfeng / @junfeng

08/01/2011 at 01:21PM

43
#>129 - Hu Junfeng / @junfeng

08/01/2011 at 01:12PM

46
#>143 - Hu Junfeng / @junfeng

08/01/2011 at 01:09PM

47
#>152 - Hu Junfeng / @junfeng

08/01/2011 at 01:08PM

50
#>166 - Hu Junfeng / @junfeng

08/01/2011 at 01:01PM