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

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

204 active golfers, 878 entries

Solutions by @AkeyCoy:
24
#18 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:56AM

25
#>18 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:52AM

27
#>46 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:29AM

27
#>46 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:31AM

28
#>49 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:23AM

29
#>50 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:21AM

30
#>58 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:20AM

31
#>74 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:15AM

33
#>86 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:12AM

34
#>88 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:10AM

35
#>90 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:08AM

36
#>92 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:06AM

39
#>107 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:04AM

40
#>119 - 刘宏亮 / @AkeyCoy

09/25/2022 at 03:02AM

41
#>126 - 刘宏亮 / @AkeyCoy

09/25/2022 at 02:58AM

43
#>135 - 刘宏亮 / @AkeyCoy

09/25/2022 at 02:55AM

44
#>140 - 刘宏亮 / @AkeyCoy

09/25/2022 at 02:42AM