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

205 active golfers, 881 entries

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

08/04/2022 at 06:17AM

27
#>46 - Qing Liu / @poeminlash

08/04/2022 at 06:38AM

27
#>46 - Qing Liu / @poeminlash

08/04/2022 at 06:39AM

28
#>49 - Qing Liu / @poeminlash

08/04/2022 at 06:17AM

29
#>50 - Qing Liu / @poeminlash

08/04/2022 at 06:16AM

30
#>58 - Qing Liu / @poeminlash

08/04/2022 at 06:13AM

31
#>74 - Qing Liu / @poeminlash

08/04/2022 at 06:12AM

32
#>79 - Qing Liu / @poeminlash

08/04/2022 at 06:12AM

33
#>86 - Qing Liu / @poeminlash

08/04/2022 at 06:11AM

34
#>88 - Qing Liu / @poeminlash

08/04/2022 at 06:11AM

35
#>90 - Qing Liu / @poeminlash

08/04/2022 at 06:10AM

36
#>92 - Qing Liu / @poeminlash

08/04/2022 at 06:10AM

37
#>95 - Qing Liu / @poeminlash

08/04/2022 at 06:09AM

38
#>99 - Qing Liu / @poeminlash

08/04/2022 at 06:08AM

39
#>107 - Qing Liu / @poeminlash

08/04/2022 at 06:08AM

40
#>119 - Qing Liu / @poeminlash

08/04/2022 at 06:07AM

42
#>133 - Qing Liu / @poeminlash

08/04/2022 at 06:05AM

43
#>135 - Qing Liu / @poeminlash

08/04/2022 at 06:04AM