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

248 active golfers, 911 entries

Leaderboard (lowest score wins):
46
#121 - Léo S / @LeoSauvaget

08/28/2015 at 07:19PM

46
#122 - [object Object] / @marinintim

10/16/2015 at 12:09PM

46
#123 - BZ_VG / @BZ_VG

02/24/2016 at 01:58PM

46
#124 - Ben Hill / @KaizenSoze70

05/18/2016 at 08:48PM

46
#125 - Rami Hovi / @hacker_lawyer

05/18/2017 at 09:59AM

46
#126 - Vimfiz / @vimfiz

05/01/2019 at 11:06PM

47
#127 - Zsolt Fekete / @feketezsolt

07/09/2015 at 06:33PM

47
#128 - Charles Joachim / @cacplate

07/16/2015 at 04:57AM

47
#129 - vimgolf / @myspare307

07/17/2015 at 12:23AM

47
#130 - Tact Overflow / @muppling

07/30/2015 at 01:40PM

47
#131 - Gabriel Florit / @gabrielflorit

09/05/2015 at 08:25PM

47
#132 - Yaroslav Kanarev / @yarosurabu

09/07/2015 at 04:15PM

47
#133 - Eduardo Reyes / @EduardoReyesT

10/29/2015 at 11:47PM

47
#134 - Phil Ting / @philipjting

11/15/2015 at 07:28AM

47
#135 - Arijus / @argshook

03/29/2018 at 12:53PM

47
#136 - c0llision / @sh3llcode

06/21/2018 at 06:08PM

48
#137 - Jonas Ng / @jnshey

07/09/2015 at 01:48PM

48
#138 - marcelo jacobus / @marcelo_jacobus

07/09/2015 at 03:43PM

48
#139 - Rasmus P / @rasmup

07/10/2015 at 02:09PM

48
#140 - Gammelin Guillaume / @ggammelin

07/13/2015 at 07:53AM

48
#141 - Alex Bartol / @alexbartol

07/24/2015 at 03:11PM

48
#142 - Daniel Beck / @daniel_beck_il

08/01/2015 at 04:14PM

48
#143 - Dennis Burke / @ikirudennis

08/27/2015 at 06:52PM

48
#144 - Campbell Davis / @Campbell_Dav

11/06/2015 at 07:01AM

48
#145 - Chenut Ludovic / @7Brwa7

04/01/2016 at 09:30AM

48
#146 - tPenguinLTG / @tpenguinltg

04/26/2016 at 07:29AM

48
#147 - John Barbero Unenge / @JBarberU

10/19/2016 at 01:36PM

48
#148 - Etienne Florent / @EtienneFlorent

11/25/2016 at 02:15PM

48
#149 - Миша Сорокин / @rafmikovi4

04/10/2017 at 06:00PM

48
#150 - Carl Egbert / @CarlOEgbert

06/12/2017 at 07:32PM