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

204 active golfers, 878 entries

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

01/29/2019 at 08:38AM

25
#>18 - Mihai / @mihaicristiant

01/29/2019 at 08:37AM

27
#>40 - Mihai / @mihaicristiant

01/29/2019 at 07:51AM

28
#>48 - Mihai / @mihaicristiant

01/29/2019 at 07:50AM

29
#>50 - Mihai / @mihaicristiant

01/29/2019 at 07:49AM

30
#>57 - Mihai / @mihaicristiant

01/28/2019 at 05:12PM

31
#>74 - Mihai / @mihaicristiant

01/28/2019 at 05:10PM

32
#>79 - Mihai / @mihaicristiant

01/28/2019 at 03:51PM

32
#>79 - Mihai / @mihaicristiant

01/28/2019 at 05:06PM

32
#>79 - Mihai / @mihaicristiant

01/29/2019 at 07:45AM

33
#>85 - Mihai / @mihaicristiant

01/28/2019 at 02:13PM

41
#>124 - Mihai / @mihaicristiant

01/28/2019 at 01:29PM

43
#>135 - Mihai / @mihaicristiant

01/28/2019 at 02:12PM