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 559e6360b6f8bd0f17010b61

Make HTML List

Turn the comma separated list into an unordered html list.

Start file
item1,item2,item3,item4,item5
End file
<ul>
	<li>item1</li>
	<li>item2</li>
	<li>item3</li>
	<li>item4</li>
	<li>item5</li>
</ul>

View Diff

1c1,7
< item1,item2,item3,item4,item5
---
> <ul>
> 	<li>item1</li>
> 	<li>item2</li>
> 	<li>item3</li>
> 	<li>item4</li>
> 	<li>item5</li>
> </ul>

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 232 remaining solutions by signing in and submitting your own entry
#233 s-hue / @hue1127 - Score: 208 - 07/14/15 @ 00:24
i<ul><Esc>A<\<BS>/ul><Esc>:s\(\w\d\),*/\t<li>\q<\/li>\r/g<CR>hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhha<CR><Esc>:<BS>:s/,/<\.<BS>/li>/g<CR>wwlla<CR><Esc>llllllllla<CR><Esc>llllllllla<CR><Esc>llllllllla<CR><Esc>lllla<CR>k<BS><Esc>kk$hhhhveelyjp0kkkk<C-V>jjjjI<Tab><Esc>jkl<C-V>jjjjjkI<li><Esc>j<Esc>:w<CR><Esc>:wq!<CR>

0 comments


Created by: @compilejason

233 active golfers, 783 entries

Leaderboard (lowest score wins):
33
#1 - E Both / @enboth

04/18/2016 at 12:22AM

33
#2 - Stephen Aument / @saument

09/04/2016 at 03:45AM

33
#3 - Nico / @_Nico_Caro

10/04/2016 at 10:04PM

33
#4 - Baine Wedlock / @BaineWedlock

08/13/2017 at 03:25PM

33
#5 - ParasamGateZero / @ParasamGateZero

02/16/2018 at 07:04AM

33
#6 - Guirec CORBEL / @GuirecCorbel

04/08/2018 at 09:38AM

33
#7 - Daniël De Koker / @daniel_koker

06/20/2018 at 12:34PM

34
#8 - John Braxler / @braxler

10/14/2015 at 02:07PM

34
#9 - Urtica dioica / @udioica

10/15/2015 at 10:55PM

34
#10 - Justin Sermeno / @justinsermeno

10/30/2015 at 12:29AM

34
#11 - jackliusr / @jackliusr

01/12/2016 at 10:18AM

34
#12 - Aleksey Zhidkov / @AlexeyZhidkov

01/23/2016 at 06:32AM

34
#13 - Dinesh Bhosale / @MrDineshBhosale

04/01/2016 at 12:14PM

34
#14 - John Goes / @johnwgoes

05/08/2016 at 07:40PM

34
#15 - Jon Krause / @jkrause314

07/06/2016 at 03:04AM

34
#16 - jdupont655 / @jdupont655

09/02/2016 at 04:07PM

34
#17 - trx / @trxdbg

10/13/2016 at 10:11AM

34
#18 - 梧桐王子 / @WutongYujie

05/04/2017 at 01:26PM

35
#19 - Mutter Mumble / @muttermumble

07/09/2015 at 07:51PM

35
#20 - Louis Burke / @LambdaABeta

07/09/2015 at 08:30PM

35
#21 - David Willming / @wdialvmeo

07/10/2015 at 03:39AM

35
#22 - James Pringle / @mathbyjames

07/10/2015 at 07:19PM

35
#23 - Steffen Köhler / @Baertierchen

07/12/2015 at 12:01AM

35
#24 - Petro Тrouq / @zulolosi

07/13/2015 at 05:07AM

35
#25 - Aaron Fresh / @AaronFresh7

07/13/2015 at 08:55AM

35
#26 - Peter B / @l0wm4x

07/31/2015 at 09:02PM

35
#27 - Ferdev vimgolf / @fergvimgolf

08/07/2015 at 10:51PM

35
#28 - Дима Давыдов / @xaykot

08/14/2015 at 09:03PM

35
#29 - Nick Xiao / @nicoster

08/22/2015 at 03:24AM

35
#30 - Paulo Romeira / @pauloromeira

08/23/2015 at 07:13PM