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 142 remaining solutions by signing in and submitting your own entry
#143 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

143 active golfers, 512 entries

Leaderboard (lowest score wins):
27
#91 - mat0123p / @mat0123p

03/21/2024 at 02:47PM

27
#92 - Rodney Visser / @_Radnus

03/27/2024 at 07:03PM

27
#93 - Jonas Hahn / @Ascyii

04/01/2024 at 09:51AM

27
#94 - kramff / @kramff

04/12/2024 at 10:51PM

28
#95 - Erick Gonzalez / @eygl_erick

02/11/2024 at 10:28PM

28
#96 - Arsen Nuramatov / @anuramat

03/06/2024 at 05:27PM

28
#97 - Yejun Kang / @Rinnnt

03/20/2024 at 11:53AM

28
#98 - @grhkm@infosec.exchange / @grhkm21

03/24/2024 at 03:42AM

28
#99 - Will-Hendrix / @Will-Hendrix

04/03/2024 at 10:39PM

29
#100 - Jeff Cui / @jeffacce

02/16/2024 at 04:24AM

29
#101 - ccorvi / @ccorvi1

02/21/2024 at 10:37PM

29
#102 - Paul Woestelandt / @pwoestelandt

03/01/2024 at 03:59PM

29
#103 - Michaƫl Guerino / @kdbbrgsxbj

03/04/2024 at 07:29PM

29
#104 - George Granberry / @ggranberry

03/09/2024 at 01:59PM

29
#105 - Camille Masset / @tizot

03/15/2024 at 10:21PM

29
#106 - Dmitry / @morbit85

03/23/2024 at 06:52PM

29
#107 - Jayden / @JayAndJef

04/11/2024 at 04:23AM

30
#108 - beneliath / @beneliath

03/28/2024 at 10:03PM

30
#109 - Robert Mosher / @rcmosher

04/04/2024 at 01:56AM

30
#110 - Joshua Philpott / @jphil529

04/08/2024 at 06:55AM

31
#111 - nico / @nicochatzi

02/19/2024 at 09:57AM

31
#112 - marcelborbus / @marcelborbus

03/02/2024 at 06:24PM

31
#113 - jferina / @jferina

03/28/2024 at 06:18AM

31
#114 - Kanmuruuruu / @Kanmuruuruu

03/30/2024 at 10:10PM

32
#115 - Aaron Dill / @aarondill

02/27/2024 at 03:09PM

32
#116 - Andrey Rakhubovsky / @omnster

03/29/2024 at 09:13AM

33
#117 - Jake Dickie / @crjake

03/07/2024 at 05:43PM

34
#118 - Baius / @b41u5

02/20/2024 at 12:39AM

35
#119 - Mitchel Kerckhaert / @MitchelKerckhaert

03/08/2024 at 04:58PM

35
#120 - Andy / @andyfoster

04/05/2024 at 09:34AM