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

274 active golfers, 1061 entries

Leaderboard (lowest score wins):
40
#91 - Marty Boren / @beanmaximalist

11/28/2015 at 03:00AM

40
#92 - Christopher Wells / @ExcaliburZero_Z

12/19/2015 at 02:37PM

40
#93 - Peter Brynza / @v3_1

08/19/2016 at 08:11PM

40
#94 - Alexander Bessonov / @nonsleepr

04/03/2017 at 06:31PM

40
#95 - 赤佐田奈葉 / @akasatanaha_

06/25/2018 at 09:23AM

40
#96 - Ariel Miculas / @ArielMiculas

09/24/2019 at 04:59PM

41
#97 - Lifepillar / @lifepillar

07/10/2015 at 06:08AM

41
#98 - we’re going to need a bigger bot / @assaflavie

07/10/2015 at 06:49AM

41
#99 - Francois Marais / @maraisf

07/10/2015 at 07:43PM

41
#100 - pftb12345 / @pftb12345

07/12/2015 at 08:48AM

41
#101 - José Rodrigues / @jyrodrigues

07/13/2015 at 03:47AM

41
#102 - benekeusz / @benekeusz

07/16/2015 at 11:23PM

41
#103 - Self Doc Code / @self_doc_code

09/28/2015 at 08:30AM

41
#104 - ojung / @oskrjung

10/05/2015 at 01:07AM

41
#105 - tgmeng / @lazy_fabric

06/10/2016 at 04:27PM

41
#106 - Constantine / @ConstantineHatz

09/29/2016 at 08:07PM

41
#107 - Marcel Akkerman / @MarcelAkkerman

12/22/2016 at 09:51AM

41
#108 - Yann / @yannstad

02/22/2017 at 07:29AM

41
#109 - Mark Brody / @_markbrody

03/24/2017 at 03:25AM

41
#110 - Brandon / @Brandon10678836

08/26/2022 at 02:30PM

42
#111 - Nam Net / @tafopigibi

10/21/2015 at 01:14AM

42
#112 - Michael Buckley / @apolatg

02/13/2016 at 07:31PM

42
#113 - Hans Yelek / @hans_yelek

01/13/2017 at 02:58AM

42
#114 - 임덕윤 / @SnLHUF5ZYJXqI1m

07/30/2019 at 01:09PM

42
#115 - RockerZZY / @rocker_zzy

06/12/2020 at 12:07PM

43
#116 - Alexey Kotov / @atercat

07/24/2015 at 01:36PM

43
#117 - Shreyas Kulkarni / @ghatotkatch

09/15/2015 at 08:54PM

43
#118 - BlackCap / @BlackCapCoder

11/30/2016 at 10:02AM

43
#119 - Michał Dytko / @DytkoM

12/19/2016 at 01:04PM

43
#120 - Jonathan Camilleri / @Too_Many_Taken

05/31/2018 at 05:36PM