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):
35
#31 - Дима Давыдов / @xaykot

08/14/2015 at 09:03PM

35
#32 - Nick Xiao / @nicoster

08/22/2015 at 03:24AM

35
#33 - Paulo Romeira / @pauloromeira

08/23/2015 at 07:13PM

35
#34 - Mike Adams / @davis_cromwell

09/27/2015 at 10:07PM

35
#35 - Smylers / @Smylers2

10/15/2015 at 03:20PM

35
#36 - Darius Smaliukas / @daraz999

11/29/2015 at 12:28PM

35
#37 - Faat / @i_faat

12/18/2015 at 06:37PM

35
#38 - Saki Gw / @Sakigw

01/10/2016 at 01:13PM

35
#39 - retro / @tryphopp

01/15/2016 at 03:29PM

35
#40 - Roberto Carraretto / @robcarraretto

01/22/2016 at 11:38PM

35
#41 - ben kavanagh / @bkava

02/23/2016 at 01:50AM

35
#42 - Dimitar Dimitrov / @kurkale6ka

03/09/2016 at 05:37PM

35
#43 - Mihai / @mihaicristiant

12/13/2018 at 11:41AM

36
#44 - Matt / @mcr05

07/11/2015 at 09:48AM

36
#45 - Ala' Ibrahim / @alaa_ibrahim

07/19/2015 at 06:23AM

36
#46 - David da Silva / @dasilvacontin

07/26/2015 at 05:49PM

36
#47 - Liam Thurston / @lthurston188

08/17/2015 at 11:42PM

36
#48 - Markus / @I__Markus__I

08/31/2015 at 08:39PM

36
#49 - oscar / @zonza_mas

09/02/2015 at 02:48PM

36
#50 - Walker Boh / @walker_boh

09/30/2015 at 12:25PM

36
#51 - Adam Cook / @apcook

10/09/2015 at 04:33AM

36
#52 - 朱国栋 / @GuodongZhu

10/15/2015 at 04:53AM

36
#53 - Curt Matz / @sitrucz

11/13/2015 at 12:49PM

36
#54 - Casey Pearring / @StandardBias

11/27/2015 at 09:16PM

36
#55 - Patrick Cichon / @the_nQL

12/07/2015 at 08:30PM

36
#56 - asdf / @AsdaasfAsdf

05/29/2016 at 07:06PM

36
#57 - T. Sakuma / @taku39

06/15/2016 at 07:37AM

36
#58 - Ram Tamtam / @ramtamtamtam

06/23/2016 at 09:06AM

36
#59 - Will / @obiwan__k3n00bi

08/30/2016 at 05:58AM

36
#60 - Bill Ruddock / @biinari

10/31/2016 at 04:59AM