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

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

202 active golfers, 842 entries

Solutions by @majo_senf:
27
#40 - majo senf / @majo_senf

06/25/2019 at 11:27AM

28
#>46 - majo senf / @majo_senf

06/25/2019 at 11:26AM

29
#>48 - majo senf / @majo_senf

06/25/2019 at 11:25AM

30
#>56 - majo senf / @majo_senf

06/25/2019 at 11:24AM

31
#>72 - majo senf / @majo_senf

06/25/2019 at 11:15AM

32
#>77 - majo senf / @majo_senf

06/25/2019 at 11:13AM

33
#>83 - majo senf / @majo_senf

06/25/2019 at 11:12AM

34
#>86 - majo senf / @majo_senf

06/25/2019 at 11:11AM

38
#>97 - majo senf / @majo_senf

06/25/2019 at 11:06AM

38
#>97 - majo senf / @majo_senf

06/25/2019 at 11:10AM

39
#>105 - majo senf / @majo_senf

06/25/2019 at 11:07AM

42
#>130 - majo senf / @majo_senf

06/25/2019 at 11:01AM

42
#>130 - majo senf / @majo_senf

06/25/2019 at 11:02AM