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

246 active golfers, 903 entries

Leaderboard (lowest score wins):
41
#91 - tgmeng / @lazy_fabric

06/10/2016 at 04:27PM

41
#92 - Constantine / @ConstantineHatz

09/29/2016 at 08:07PM

41
#93 - Marcel Akkerman / @MarcelAkkerman

12/22/2016 at 09:51AM

41
#94 - Yann / @yannstad

02/22/2017 at 07:29AM

41
#95 - Mark Brody / @_markbrody

03/24/2017 at 03:25AM

42
#96 - Nam Net / @tafopigibi

10/21/2015 at 01:14AM

42
#97 - Michael Buckley / @apolatg

02/13/2016 at 07:31PM

42
#98 - Hans Yelek / @hans_yelek

01/13/2017 at 02:58AM

42
#99 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/30/2019 at 01:09PM

43
#100 - Alexey Kotov / @atercat

07/24/2015 at 01:36PM

43
#101 - Shreyas Kulkarni / @ghatotkatch

09/15/2015 at 08:54PM

43
#102 - BlackCap / @BlackCapCoder

11/30/2016 at 10:02AM

43
#103 - Michał Dytko / @DytkoM

12/19/2016 at 01:04PM

43
#104 - Jonathan Camilleri / @Too_Many_Taken

05/31/2018 at 05:36PM

44
#105 - Andres Araya / @arayaandresfco

05/20/2016 at 03:49PM

44
#106 - Timothy Caleb Nordlo / @tnordloh

06/29/2016 at 03:15AM

45
#107 - gyermolenko / @gyermolenko_

08/15/2015 at 04:22PM

45
#108 - Ryuichiro / @ryuichiro44

11/20/2015 at 02:37AM

45
#109 - merphant / @merphant

11/21/2015 at 07:53AM

45
#110 - Michel Ganguin / @tinycrazyfish

03/02/2016 at 01:58PM

45
#111 - TweetDreams / @TweetMusicians

10/10/2016 at 12:00AM

45
#112 - Zhihong Liu / @pieapple03

02/26/2017 at 10:50AM

45
#113 - John Smith / @johns32768

06/21/2017 at 05:57PM

45
#114 - Brian Hall / @_bruab_

06/25/2017 at 07:13PM

46
#115 - luffy / @raxcoi

07/11/2015 at 09:28PM

46
#116 - Gael Roue / @gaelroue

08/11/2015 at 10:01AM

46
#117 - JerryChiu / @pv31508

08/18/2015 at 02:52PM

46
#118 - JS / @jjohsan

08/23/2015 at 09:06PM

46
#119 - Léo S / @LeoSauvaget

08/28/2015 at 07:19PM

46
#120 - [object Object] / @marinintim

10/16/2015 at 12:09PM