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

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

190 active golfers, 759 entries

Solutions by @jimauthors:
26
#16 - jimauthors / @jimauthors

02/14/2014 at 01:17AM

31
#>66 - jimauthors / @jimauthors

02/14/2014 at 12:40AM

33
#>77 - jimauthors / @jimauthors

02/14/2014 at 12:11AM

35
#>82 - jimauthors / @jimauthors

02/14/2014 at 12:03AM

41
#>115 - jimauthors / @jimauthors

02/13/2014 at 11:40PM

42
#>122 - jimauthors / @jimauthors

02/13/2014 at 11:37PM