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 153 remaining solutions by signing in and submitting your own entry
#154 Zizheng Wong / @zizhengWong - Score: 94 - 02/18/24 @ 13:19
<Esc><Esc>j<Esc>kjq1i<li><Esc>A</li><Esc>F<Esc>3b~j01q11@1gg13jgg11j<Esc>ggj<C-V>11ji<Tab>I<Tab><Esc>uv<Esc><C-V>11jI<Tab><Esc><Esc>uvjj9ji<Tab>I<Tab><Esc>jk<Esc>u<C-V>11jI<Tab><Esc>:wq<CR>

0 comments


Created by: @gangelop

154 active golfers, 551 entries

Leaderboard (lowest score wins):
32
#121 - Aaron Dill / @aarondill

02/27/2024 at 03:09PM

32
#122 - Andrey Rakhubovsky / @omnster

03/29/2024 at 09:13AM

33
#123 - Jake Dickie / @crjake

03/07/2024 at 05:43PM

33
#124 - Tom Hogrefe / @thogrefe-foreflight

04/16/2024 at 03:48PM

34
#125 - Baius / @b41u5

02/20/2024 at 12:39AM

35
#126 - Mitchel Kerckhaert / @MitchelKerckhaert

03/08/2024 at 04:58PM

35
#127 - Andy / @andyfoster

04/05/2024 at 09:34AM

36
#128 - potatol33t / @potatol33t

02/19/2024 at 05:18PM

36
#129 - dreamers00 / @dreamers003

03/04/2024 at 07:24PM

36
#130 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

03/08/2024 at 09:33AM

37
#131 - lejeunel / @lejeunel

04/07/2024 at 11:04AM

38
#132 - Charlie / @charliezchen

03/29/2024 at 02:04AM

38
#133 - Håkon Anders Strømsodd / @haakon8855

04/05/2024 at 01:29PM

38
#134 - Roland Thompson / @rolzy

04/18/2024 at 07:02AM

39
#135 - mst_ysk / @mstysk

03/04/2024 at 11:34PM

39
#136 - Chinmay Dalal / @p00f

03/12/2024 at 09:05AM

39
#137 - Luke / @lfitzgerald

03/15/2024 at 09:31PM

39
#138 - David Aguilera / @davilera

04/04/2024 at 10:09AM

41
#139 - jaggujajamensan / @jaggujajamensan

02/12/2024 at 11:25AM

41
#140 - peninoule / @peninoule

03/01/2024 at 10:53AM

43
#141 - ubaldot / @ubaldot

03/24/2024 at 09:23AM

44
#142 - mawamd / @mawamd

03/02/2024 at 04:50AM

45
#143 - $bitwalk / @bitwalk

03/25/2024 at 03:34PM

46
#144 - lansh2197 / @lansh2197

02/11/2024 at 08:28AM

46
#145 - nycksw / @nycksw

04/16/2024 at 05:54PM

47
#146 - Chris / @griggsca91

02/26/2024 at 02:04AM

48
#147 - Pablo Fonseca / @pablobfonseca

03/22/2024 at 07:42PM

51
#148 - Clay26 / @Clay26

04/06/2024 at 07:02PM

51
#149 - Thijs / @Liulangzhe98

04/16/2024 at 03:16PM

53
#150 - Paul Jones / @thepauljones

02/12/2024 at 02:18PM