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

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

202 active golfers, 842 entries

Solutions by @poeminlash:
27
#45 - Qing Liu / @poeminlash

08/04/2022 at 06:17AM

27
#>45 - Qing Liu / @poeminlash

08/04/2022 at 06:38AM

27
#>45 - Qing Liu / @poeminlash

08/04/2022 at 06:39AM

28
#>47 - Qing Liu / @poeminlash

08/04/2022 at 06:17AM

29
#>48 - Qing Liu / @poeminlash

08/04/2022 at 06:16AM

30
#>56 - Qing Liu / @poeminlash

08/04/2022 at 06:13AM

31
#>72 - Qing Liu / @poeminlash

08/04/2022 at 06:12AM

32
#>77 - Qing Liu / @poeminlash

08/04/2022 at 06:12AM

33
#>84 - Qing Liu / @poeminlash

08/04/2022 at 06:11AM

34
#>86 - Qing Liu / @poeminlash

08/04/2022 at 06:11AM

35
#>88 - Qing Liu / @poeminlash

08/04/2022 at 06:10AM

36
#>90 - Qing Liu / @poeminlash

08/04/2022 at 06:10AM

37
#>93 - Qing Liu / @poeminlash

08/04/2022 at 06:09AM

38
#>97 - Qing Liu / @poeminlash

08/04/2022 at 06:08AM

39
#>105 - Qing Liu / @poeminlash

08/04/2022 at 06:08AM

40
#>117 - Qing Liu / @poeminlash

08/04/2022 at 06:07AM

42
#>131 - Qing Liu / @poeminlash

08/04/2022 at 06:05AM

43
#>133 - Qing Liu / @poeminlash

08/04/2022 at 06:04AM