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):
66
#241 - Jeanno / @JeannoHS

07/29/2015 at 04:36AM

68
#242 - 江裕诚 / @fatjyc

07/14/2015 at 02:48PM

69
#243 - Rudolfs Sohn / @rudolf_son

08/28/2015 at 06:12PM

69
#244 - adrien frediani / @fredianiadrien

01/04/2016 at 08:07PM

70
#245 - Hendrik Lammers / @hendriklammers

07/16/2015 at 07:25PM

103
#246 - Brandon Milam / @jbmilam950

07/09/2015 at 05:32PM

195
#247 - Евгения Харламова / @MadWomaZ

07/20/2015 at 05:20PM

208
#248 - s-hue / @hue1127

07/14/2015 at 12:24AM