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

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

204 active golfers, 878 entries

Solutions by @DHM29978992:
24
#14 - DHM / @DHM29978992

04/30/2018 at 07:11PM

27
#>39 - DHM / @DHM29978992

04/30/2018 at 07:08PM

30
#>57 - DHM / @DHM29978992

04/30/2018 at 07:07PM

31
#>74 - DHM / @DHM29978992

04/30/2018 at 07:06PM

33
#>85 - DHM / @DHM29978992

04/30/2018 at 06:49PM

33
#>85 - DHM / @DHM29978992

04/30/2018 at 07:05PM

34
#>88 - DHM / @DHM29978992

04/30/2018 at 06:44PM