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):
48
#151 - Bart3k / @Bart3k3

09/19/2018 at 11:47AM

49
#152 - Teemu Okkonen / @TeemuOkkonen

07/09/2015 at 01:35PM

49
#153 - Anatolii Sakhnik / @sakhnik

07/22/2015 at 01:30PM

49
#154 - fantome / @fantome84

07/23/2015 at 01:28PM

49
#155 - ZeroKelvin Keyboard / @zkkeyboard

08/11/2015 at 05:35AM

49
#156 - Mikołaj Morzy / @MikolajMorzy

08/21/2015 at 11:20AM

49
#157 - Jörg Meyer / @JoergMy

08/24/2015 at 06:02PM

49
#158 - 이 철희 / @leechulhee95

10/02/2015 at 04:26PM

49
#159 - Pin / @ponfelipon

10/08/2015 at 02:55PM

49
#160 - AD / @Lievr0

11/21/2015 at 09:18AM

49
#161 - Holden Lewis / @lonnez90

12/03/2015 at 02:18PM

49
#162 - adeel hussain / @adeelhussain

12/23/2015 at 05:11PM

49
#163 - Kevin Gisi / @cheerskevin

02/24/2016 at 07:44AM

49
#164 - Antony Garand / @AntonySecurity

02/25/2016 at 02:40PM

49
#165 - Malte R / @maltoe

05/11/2016 at 03:04PM

49
#166 - John Smith / @JohnSmith448816

05/14/2016 at 06:08AM

49
#167 - Stop and think / @ms_uncountable

07/08/2017 at 05:56AM

49
#168 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 03:14PM

49
#169 - Lydia Cupery / @LCupery

04/15/2018 at 07:23PM

49
#170 - Paul Jones / @thepauljones

06/26/2018 at 08:28AM

50
#171 - Tui Kiken / @TuiKiken

07/09/2015 at 01:19PM

50
#172 - kungfuchad / @kungfuchad

07/09/2015 at 01:31PM

50
#173 - Perry van Schaijk / @PvSchaijk

07/19/2015 at 01:10PM

50
#174 - Florent F. / @floff01

07/22/2015 at 11:10AM

50
#175 - Endre Galaczi / @galacziendre

07/27/2015 at 03:17PM

50
#176 - Jesse Atkinson / @jsatk

08/29/2015 at 02:46AM

50
#177 - A / @Tower_1980

09/03/2015 at 01:01PM

50
#178 - Slavisa Djukic / @ssdjuka

09/30/2015 at 09:42PM

50
#179 - Brad / @b2test

10/21/2015 at 09:48AM

50
#180 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 04:42PM