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):
24
#31 - Trewornan / @Trewornan

02/20/2024 at 03:42PM

24
#32 - pajamaman7 aka tommyBuckets / @pajamaman7

02/22/2024 at 06:50PM

24
#33 - Kristóf Cserpes / @KriCse

02/25/2024 at 03:24PM

24
#34 - gFffdhg6UX3ceYvTsLms / @gFffdhg6UX3ceYvTsLms

02/27/2024 at 04:45PM

24
#35 - Alex / @AlexanderHeatl2

02/28/2024 at 03:13AM

24
#36 - Ryo_Ishimoto / @RIshimoto

03/02/2024 at 07:48AM

24
#37 - wh1te-star / @wh1te-star

03/02/2024 at 08:40AM

24
#38 - Igor Ignatov / @mundragora

03/06/2024 at 10:42AM

24
#39 - Dmitrii Liziura / @DLizr

03/07/2024 at 07:54PM

24
#40 - かみひろ / @km_hr

03/09/2024 at 09:08AM

24
#41 - Marco Meinardi / @Kee__no

03/15/2024 at 12:18PM

24
#42 - shikitanrei / @shikitanrei

03/15/2024 at 02:21PM

24
#43 - Jelani Felix / @Jelanife

03/18/2024 at 02:08AM

24
#44 - Jeanno / @Jeanno

03/20/2024 at 05:54AM

24
#45 - ohFLIP / @ohFLIP

03/21/2024 at 11:11AM

24
#46 - Euisoon Ahn / @esnahn

03/22/2024 at 06:50AM

24
#47 - Toxicogenic / @Toxicogenic

03/22/2024 at 03:03PM

24
#48 - Páll Pálsson / @DrLlap

03/24/2024 at 01:06AM

24
#49 - zxalone / @zxalone

03/25/2024 at 07:49AM

24
#50 - St8Razor / @St8Razor

03/26/2024 at 04:28PM

24
#51 - Aristotelis Dossas / @teldosas

03/26/2024 at 05:08PM

24
#52 - Adv_Zxy / @adv_zxy

03/27/2024 at 03:30AM

24
#53 - Bastian Rihm / @bastianjoel

03/28/2024 at 03:42PM

24
#54 - sabt5050 / @sabt5050

03/29/2024 at 04:38AM

24
#55 - Jiacong Fang / @zldrobit

03/29/2024 at 05:51PM

24
#56 - rcmosher / @rcmosher

04/04/2024 at 02:06AM

24
#57 - Miter / @MiterMe

04/04/2024 at 03:44PM

24
#58 - Gerrit Proessl / @g3rrit

04/04/2024 at 08:17PM

24
#59 - Peppa Pig / @PeppaPi95550250

04/09/2024 at 02:03AM

24
#60 - Lennart / @lennartack

04/13/2024 at 08:09PM