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

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

197 active golfers, 800 entries

Solutions by @alek_fed:
23
#9 - alekfed / @alek_fed

04/20/2019 at 08:33AM

24
#>14 - alekfed / @alek_fed

04/20/2019 at 08:20AM

24
#>14 - alekfed / @alek_fed

04/20/2019 at 08:23AM

24
#>14 - alekfed / @alek_fed

04/20/2019 at 08:29AM

27
#>38 - alekfed / @alek_fed

04/20/2019 at 08:13AM

28
#>44 - alekfed / @alek_fed

04/20/2019 at 08:13AM

29
#>46 - alekfed / @alek_fed

04/20/2019 at 08:12AM

30
#>54 - alekfed / @alek_fed

04/20/2019 at 08:12AM

31
#>70 - alekfed / @alek_fed

04/20/2019 at 08:11AM

32
#>75 - alekfed / @alek_fed

04/20/2019 at 08:11AM

33
#>81 - alekfed / @alek_fed

04/20/2019 at 08:10AM

34
#>84 - alekfed / @alek_fed

04/20/2019 at 08:09AM

35
#>85 - alekfed / @alek_fed

04/20/2019 at 08:09AM

36
#>88 - alekfed / @alek_fed

04/20/2019 at 08:08AM

37
#>91 - alekfed / @alek_fed

04/20/2019 at 08:07AM

39
#>103 - alekfed / @alek_fed

04/20/2019 at 08:05AM

40
#>114 - alekfed / @alek_fed

04/20/2019 at 08:04AM

41
#>119 - alekfed / @alek_fed

04/20/2019 at 08:03AM

42
#>127 - alekfed / @alek_fed

04/20/2019 at 08:02AM

43
#>130 - alekfed / @alek_fed

04/20/2019 at 08:01AM

46
#>148 - alekfed / @alek_fed

04/20/2019 at 07:59AM

48
#>157 - alekfed / @alek_fed

04/20/2019 at 07:56AM

50
#>168 - alekfed / @alek_fed

04/20/2019 at 07:53AM