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 5035e5b3838d9e000200006d

Dehamlizing

Change this piece of HAML code back into erb

Start file
%tr
  %td= raw("<%= line1_hello %>")
  %td= raw("<%= line2(world) %>")
  %td= raw("<%= line3_hello %>")
  %td= raw("<%= line4 %>")
  %td= raw("<%= line5_(world) %>")
End file
<tr>
  <td><%= line1_hello %></td>
  <td><%= line2(world) %></td>
  <td><%= line3_hello %></td>
  <td><%= line4 %></td>
  <td><%= line5_(world) %></td>
</tr>

View Diff

1,6c1,7
< %tr
<   %td= raw("<%= line1_hello %>")
<   %td= raw("<%= line2(world) %>")
<   %td= raw("<%= line3_hello %>")
<   %td= raw("<%= line4 %>")
<   %td= raw("<%= line5_(world) %>")
---
> <tr>
>   <td><%= line1_hello %></td>
>   <td><%= line2(world) %></td>
>   <td><%= line3_hello %></td>
>   <td><%= line4 %></td>
>   <td><%= line5_(world) %></td>
> </tr>

Solutions by @SusSquirrel:

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @corrodedlotus

66 active golfers, 173 entries

Solutions by @SusSquirrel:
32
#6 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:18PM

34
#>7 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:17PM

35
#>10 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:14PM

36
#>11 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:13PM

37
#>19 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:12PM

40
#>33 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:11PM

41
#>36 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:10PM

42
#>42 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:09PM

44
#>48 - Arya Kumar / @SusSquirrel

05/26/2021 at 11:06PM