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

273 active golfers, 1050 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

33
#8 - CptBong / @cpt1bong

12/19/2018 at 04:35AM

33
#9 - Grant / @grant_7788

05/17/2019 at 12:24AM

33
#10 - Martin Delille / @martinodelilo

08/22/2019 at 02:34PM

33
#11 - Miłosz Łakomy / @foobar01123

09/19/2019 at 11:14AM

33
#12 - 蔡徐坤真是爱吃屎 / @Hashub7

01/22/2021 at 08:47AM

33
#13 - A A A / @37fatos

01/25/2021 at 07:42PM

33
#14 - Jung Yeon Park / @park_jungy

01/27/2021 at 10:19PM

33
#15 - Peppa Pig / @PeppaPigSg

06/12/2024 at 05:14AM

34
#16 - John Braxler / @braxler

10/14/2015 at 02:07PM

34
#17 - Urtica dioica / @udioica

10/15/2015 at 10:55PM

34
#18 - Justin Sermeno / @justinsermeno

10/30/2015 at 12:29AM

34
#19 - jackliusr / @jackliusr

01/12/2016 at 10:18AM

34
#20 - Aleksey Zhidkov / @AlexeyZhidkov

01/23/2016 at 06:32AM

34
#21 - Dinesh Bhosale / @MrDineshBhosale

04/01/2016 at 12:14PM

34
#22 - John Goes / @johnwgoes

05/08/2016 at 07:40PM

34
#23 - Jon Krause / @jkrause314

07/06/2016 at 03:04AM

34
#24 - jdupont655 / @jdupont655

09/02/2016 at 04:07PM

34
#25 - trx / @trxdbg

10/13/2016 at 10:11AM

34
#26 - 梧桐王子 / @WutongYujie

05/04/2017 at 01:26PM

34
#27 - Lory / @Lory46845742

11/14/2019 at 01:55PM

34
#28 - chocolate / @chocola81394123

11/27/2020 at 08:10AM

34
#29 - hepebexè / @hepebexe

01/24/2021 at 10:13PM

34
#30 - Remus Dalrymple / @bornintheflames

12/25/2023 at 11:25PM