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

249 active golfers, 917 entries

Leaderboard (lowest score wins):
52
#211 - John Smith / @literacyisgood

02/08/2016 at 04:20AM

52
#212 - Eric Potter / @pottereric

05/02/2016 at 05:25PM

52
#213 - Oliver Christ / @0liverChrist

07/12/2016 at 10:38PM

53
#214 - DanSnow / @dododavid006

08/28/2015 at 02:59PM

53
#215 - Hello World / @CrisTsanNtua

09/27/2015 at 12:50PM

53
#216 - Sukovec / @Sukovec

05/11/2016 at 02:17PM

54
#217 - Louis Caruana / @louiecaruana

07/15/2015 at 04:54AM

54
#218 - Veritas / @_VeritasL

08/13/2015 at 06:31PM

54
#219 - Aurélien Lair / @aurelien_lair

11/14/2015 at 02:04PM

54
#220 - Izabel Jelenić / @IzabelJelenic

12/22/2015 at 08:23PM

54
#221 - Doru-Mihai Muntean / @dorumihai

12/01/2016 at 11:15PM

54
#222 - Phoon / @justflashhim

05/11/2019 at 03:19AM

55
#223 - broella3 / @broella3

08/20/2015 at 02:49PM

55
#224 - Stefan Knudsen / @knud32

11/01/2015 at 09:42PM

55
#225 - chaotic / @laersn

08/02/2018 at 01:27PM

56
#226 - Wandering ponderer / @0proxycon

07/11/2015 at 11:06PM

56
#227 - Paul Inc / @hiniol1982

07/13/2017 at 08:01PM

57
#228 - Toni Dezman / @CesarekToni

07/28/2015 at 07:32PM

57
#229 - Luis Rodriguez / @luisthecoder

11/16/2018 at 03:25AM

58
#230 - Evan / @reuhssurance

08/21/2015 at 02:06AM

58
#231 - Francis / @francis_vega

09/04/2015 at 03:35PM

58
#232 - David Aguilera / @davilera

08/11/2016 at 02:20PM

59
#233 - Gerald Tilma / @GeraldTilma

10/17/2015 at 09:24PM

59
#234 - Theodore DeRego / @tedsta0

12/08/2015 at 04:08AM

60
#235 - z0c / @zerocabal

06/11/2018 at 04:26PM

61
#236 - vimgolf5555 / @h849718

10/15/2015 at 11:02AM

61
#237 - Michael Dykman / @MichaelDykman

04/29/2016 at 03:49PM

62
#238 - Brent Woo / @BrentPWoo

10/02/2018 at 03:50PM

65
#239 - WLIU / @weichih654

08/27/2015 at 11:08AM

65
#240 - Mark Maglana / @markmaglana

10/20/2015 at 07:43AM