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

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

205 active golfers, 881 entries

Solutions by @FrogzSJ:
27
#40 - fsj / @FrogzSJ

08/13/2018 at 03:19AM

27
#>40 - fsj / @FrogzSJ

08/13/2018 at 03:21AM

27
#>40 - fsj / @FrogzSJ

08/13/2018 at 03:25AM

27
#>40 - fsj / @FrogzSJ

08/13/2018 at 03:27AM

28
#>48 - fsj / @FrogzSJ

08/13/2018 at 03:18AM

29
#>50 - fsj / @FrogzSJ

08/13/2018 at 03:18AM

30
#>57 - fsj / @FrogzSJ

08/13/2018 at 03:02AM

30
#>57 - fsj / @FrogzSJ

08/13/2018 at 03:16AM

31
#>74 - fsj / @FrogzSJ

08/13/2018 at 03:00AM

31
#>74 - fsj / @FrogzSJ

08/13/2018 at 03:11AM

33
#>85 - fsj / @FrogzSJ

08/13/2018 at 02:51AM

34
#>88 - fsj / @FrogzSJ

08/13/2018 at 02:45AM

37
#>95 - fsj / @FrogzSJ

08/13/2018 at 02:43AM

40
#>118 - fsj / @FrogzSJ

08/13/2018 at 02:39AM

41
#>124 - fsj / @FrogzSJ

08/13/2018 at 02:34AM

42
#>132 - fsj / @FrogzSJ

08/13/2018 at 02:28AM