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

265 active golfers, 997 entries

Leaderboard (lowest score wins):
35
#31 - David Willming / @wdialvmeo

07/10/2015 at 03:39AM

35
#32 - James Pringle / @mathbyjames

07/10/2015 at 07:19PM

35
#33 - Steffen Köhler / @Baertierchen

07/12/2015 at 12:01AM

35
#34 - Petro Тrouq / @zulolosi

07/13/2015 at 05:07AM

35
#35 - Aaron Fresh / @AaronFresh7

07/13/2015 at 08:55AM

35
#36 - Peter B / @l0wm4x

07/31/2015 at 09:02PM

35
#37 - Ferdev vimgolf / @fergvimgolf

08/07/2015 at 10:51PM

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

08/14/2015 at 09:03PM

35
#39 - Nick Xiao / @nicoster

08/22/2015 at 03:24AM

35
#40 - Paulo Romeira / @pauloromeira

08/23/2015 at 07:13PM

35
#41 - Mike Adams / @davis_cromwell

09/27/2015 at 10:07PM

35
#42 - Smylers / @Smylers2

10/15/2015 at 03:20PM

35
#43 - Darius Smaliukas / @daraz999

11/29/2015 at 12:28PM

35
#44 - Faat / @i_faat

12/18/2015 at 06:37PM

35
#45 - Saki Gw / @Sakigw

01/10/2016 at 01:13PM

35
#46 - retro / @tryphopp

01/15/2016 at 03:29PM

35
#47 - Roberto Carraretto / @robcarraretto

01/22/2016 at 11:38PM

35
#48 - ben kavanagh / @bkava

02/23/2016 at 01:50AM

35
#49 - Dimitar Dimitrov / @kurkale6ka

03/09/2016 at 05:37PM

35
#50 - Mihai / @mihaicristiant

12/13/2018 at 11:41AM

36
#51 - Matt / @mcr05

07/11/2015 at 09:48AM

36
#52 - Ala' Ibrahim / @alaa_ibrahim

07/19/2015 at 06:23AM

36
#53 - David da Silva / @dasilvacontin

07/26/2015 at 05:49PM

36
#54 - Liam Thurston / @lthurston188

08/17/2015 at 11:42PM

36
#55 - Markus / @I__Markus__I

08/31/2015 at 08:39PM

36
#56 - oscar / @zonza_mas

09/02/2015 at 02:48PM

36
#57 - Walker Boh / @walker_boh

09/30/2015 at 12:25PM

36
#58 - Adam Cook / @apcook

10/09/2015 at 04:33AM

36
#59 - 朱国栋 / @GuodongZhu

10/15/2015 at 04:53AM

36
#60 - Curt Matz / @sitrucz

11/13/2015 at 12:49PM