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

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

205 active golfers, 881 entries

Solutions by @russellzhaomao:
27
#45 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:48AM

28
#>49 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:47AM

28
#>49 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:49AM

29
#>50 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:46AM

30
#>58 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:44AM

31
#>74 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:34AM

33
#>86 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:06AM

33
#>86 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:07AM

34
#>88 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:04AM

35
#>90 - russellzhaomao / @russellzhaomao

06/03/2022 at 02:03AM

39
#>107 - russellzhaomao / @russellzhaomao

06/03/2022 at 01:58AM

44
#>140 - russellzhaomao / @russellzhaomao

06/02/2022 at 11:45AM