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

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

202 active golfers, 842 entries

Solutions by @shahanavazm:
45
#144 - shahanavaz m / @shahanavazm

02/20/2022 at 02:23AM

49
#>168 - shahanavaz m / @shahanavazm

02/20/2022 at 02:16AM

53
#>180 - shahanavaz m / @shahanavazm

03/11/2024 at 01:38AM

54
#>181 - shahanavaz m / @shahanavazm

02/05/2024 at 08:35PM

55
#>184 - shahanavaz m / @shahanavazm

02/20/2022 at 02:14AM

69
#>194 - shahanavaz m / @shahanavazm

02/20/2022 at 02:10AM

83
#>199 - shahanavaz m / @shahanavazm

02/05/2024 at 08:30PM