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):
45
#121 - Michel Ganguin / @tinycrazyfish

03/02/2016 at 01:58PM

45
#122 - TweetDreams / @TweetMusicians

10/10/2016 at 12:00AM

45
#123 - Zhihong Liu / @pieapple03

02/26/2017 at 10:50AM

45
#124 - John Smith / @johns32768

06/21/2017 at 05:57PM

45
#125 - Brian Hall / @_bruab_

06/25/2017 at 07:13PM

46
#126 - luffy / @raxcoi

07/11/2015 at 09:28PM

46
#127 - Gael Roue / @gaelroue

08/11/2015 at 10:01AM

46
#128 - JerryChiu / @pv31508

08/18/2015 at 02:52PM

46
#129 - JS / @jjohsan

08/23/2015 at 09:06PM

46
#130 - Léo S / @LeoSauvaget

08/28/2015 at 07:19PM

46
#131 - [object Object] / @marinintim

10/16/2015 at 12:09PM

46
#132 - BZ_VG / @BZ_VG

02/24/2016 at 01:58PM

46
#133 - Ben Hill / @KaizenSoze70

05/18/2016 at 08:48PM

46
#134 - Rami Hovi / @hacker_lawyer

05/18/2017 at 09:59AM

46
#135 - Vimfiz / @vimfiz

05/01/2019 at 11:06PM

46
#136 - Ming Dai / @MingDai2

07/02/2020 at 05:58AM

46
#137 - Kha Nguyen / @__ngtrongkha

01/04/2021 at 07:53AM

47
#138 - Zsolt Fekete / @feketezsolt

07/09/2015 at 06:33PM

47
#139 - Charles Joachim / @cacplate

07/16/2015 at 04:57AM

47
#140 - vimgolf / @myspare307

07/17/2015 at 12:23AM

47
#141 - Tact Overflow / @muppling

07/30/2015 at 01:40PM

47
#142 - Gabriel Florit / @gabrielflorit

09/05/2015 at 08:25PM

47
#143 - Yaroslav Kanarev / @yarosurabu

09/07/2015 at 04:15PM

47
#144 - Eduardo Reyes / @EduardoReyesT

10/29/2015 at 11:47PM

47
#145 - Phil Ting / @philipjting

11/15/2015 at 07:28AM

47
#146 - Arijus / @argshook

03/29/2018 at 12:53PM

47
#147 - c0llision / @sh3llcode

06/21/2018 at 06:08PM

47
#148 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 03:43PM

48
#149 - Jonas Ng / @jnshey

07/09/2015 at 01:48PM

48
#150 - marcelo jacobus / @marcelo_jacobus

07/09/2015 at 03:43PM