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 9v0065c7bf44000000000261

months to html list items

Turn the months into list items.

Start file
<ul class="months">
january
february
march
april
may
june
july
august
september
october
november
december
</ul>
End file
<ul class="months">
	<li>January</li>
	<li>February</li>
	<li>March</li>
	<li>April</li>
	<li>May</li>
	<li>June</li>
	<li>July</li>
	<li>August</li>
	<li>September</li>
	<li>October</li>
	<li>November</li>
	<li>December</li>
</ul>

View Diff

2,13c2,13
< january
< february
< march
< april
< may
< june
< july
< august
< september
< october
< november
< december
---
> 	<li>January</li>
> 	<li>February</li>
> 	<li>March</li>
> 	<li>April</li>
> 	<li>May</li>
> 	<li>June</li>
> 	<li>July</li>
> 	<li>August</li>
> 	<li>September</li>
> 	<li>October</li>
> 	<li>November</li>
> 	<li>December</li>

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 305 remaining solutions by signing in and submitting your own entry
#306 Jake / @thejakenixon - Score: 213 - 06/21/24 @ 19:06
ji<Tab><li><Del>J<End></li><li><Esc>vhhhhhhhhylllla<CR><End><Del><End>p<BS><Esc><End>pa<Del><Left><Left><Left><Left><CR><End><Esc>pa<Del><C-Left><C-Left><Left><CR><End><Esc>pa<Del><End><Esc>p<Down>p<Down><End>p<Down>p<Down>p<Down>p<Down>p<Down>p6<Up><Up><C-Right><C-Left><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i<CR><End><Left><End><Del><C-Left><Left><Left><Left><CR><End><Del><C-Left><Left><Left><Left><CR><End><Del><C-Left><C-Left><C-Left><Right><CR><End><Del><C-Left><Left><Left><Left><CR><End><Left><Left><Left><Left><CR><End><Del><End><Left><Left><Left><Left><CR><End><Del><End><Left><Left><Left><Left><CR><End><Del><End><BS><BS><BS><BS><Esc><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>rD<Up>rN<Up>rO<Up>rS<Up>rA<Up>rJ<Up>rJ<Up>rM<Up>rA<Up>rM<Up>rF<Esc>:wq<CR>

0 comments


Created by: @gangelop

306 active golfers, 1130 entries

Leaderboard (lowest score wins):
56
#301 - Dalton Valliere / @edvallie

04/18/2024 at 07:32PM

57
#302 - alunturner / @alunturner

03/20/2024 at 11:50PM

64
#303 - Puspendra Mahariya / @silent-cipher

03/28/2024 at 12:02PM

64
#304 - FruityNinjaa / @FruityNinjaa

05/08/2024 at 07:41PM

94
#305 - Zizheng Wong / @zizhengWong

02/18/2024 at 01:19PM

213
#306 - Jake / @thejakenixon

06/21/2024 at 07:06PM