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

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

197 active golfers, 800 entries

Solutions by @mihaicristiant:
24
#14 - Mihai / @mihaicristiant

01/29/2019 at 08:38AM

25
#>16 - Mihai / @mihaicristiant

01/29/2019 at 08:37AM

27
#>38 - Mihai / @mihaicristiant

01/29/2019 at 07:51AM

28
#>44 - Mihai / @mihaicristiant

01/29/2019 at 07:50AM

29
#>46 - Mihai / @mihaicristiant

01/29/2019 at 07:49AM

30
#>53 - Mihai / @mihaicristiant

01/28/2019 at 05:12PM

31
#>70 - Mihai / @mihaicristiant

01/28/2019 at 05:10PM

32
#>75 - Mihai / @mihaicristiant

01/28/2019 at 03:51PM

32
#>75 - Mihai / @mihaicristiant

01/28/2019 at 05:06PM

32
#>75 - Mihai / @mihaicristiant

01/29/2019 at 07:45AM

33
#>81 - Mihai / @mihaicristiant

01/28/2019 at 02:13PM

41
#>119 - Mihai / @mihaicristiant

01/28/2019 at 01:29PM

43
#>130 - Mihai / @mihaicristiant

01/28/2019 at 02:12PM