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

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

197 active golfers, 800 entries

Solutions by @sijinyuan:
24
#11 - sijinyuan / @sijinyuan

03/23/2017 at 01:33AM

27
#>37 - sijinyuan / @sijinyuan

03/23/2017 at 01:29AM

29
#>46 - sijinyuan / @sijinyuan

03/23/2017 at 01:28AM

31
#>70 - sijinyuan / @sijinyuan

03/23/2017 at 01:27AM

33
#>81 - sijinyuan / @sijinyuan

03/23/2017 at 01:25AM

34
#>84 - sijinyuan / @sijinyuan

03/23/2017 at 01:24AM

37
#>90 - sijinyuan / @sijinyuan

03/23/2017 at 01:20AM

39
#>103 - sijinyuan / @sijinyuan

03/23/2017 at 01:18AM

40
#>114 - sijinyuan / @sijinyuan

03/22/2017 at 02:52PM

43
#>129 - sijinyuan / @sijinyuan

03/22/2017 at 02:50PM

45
#>140 - sijinyuan / @sijinyuan

03/22/2017 at 02:47PM

46
#>148 - sijinyuan / @sijinyuan

03/22/2017 at 02:44PM

48
#>157 - sijinyuan / @sijinyuan

03/22/2017 at 02:41PM