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

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

196 active golfers, 788 entries

Solutions by @SusSquirrel:
27
#42 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:16PM

28
#>44 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:14PM

29
#>45 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:13PM

30
#>53 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:12PM

31
#>69 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:11PM

32
#>74 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:10PM

33
#>81 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:08PM

34
#>83 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:07PM

35
#>84 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:06PM

36
#>87 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:05PM

39
#>102 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:02PM

42
#>127 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:01PM

49
#>163 - Arya Kumar / @SusSquirrel

05/29/2021 at 04:00PM