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):
51
#211 - Anshu Avinash / @anshu_avinash

10/17/2015 at 10:01PM

51
#212 - Wilmer Bandres / @WilmerBandres

12/01/2015 at 11:40PM

51
#213 - Ashley Ryan / @aviendha25

12/21/2015 at 05:41PM

51
#214 - Austin Wood / @indiesquidge

01/27/2016 at 05:46PM

51
#215 - Kevin R / @TheKevinthDay

05/12/2016 at 08:48PM

51
#216 - Defts = DvToons / @defts

07/22/2016 at 01:18PM

51
#217 - usermod / @g_usermod

11/20/2017 at 03:31PM

51
#218 - Dylan Waits / @pianoman320

07/15/2018 at 03:53AM

51
#219 - Jurica / @Jurica34581259

11/16/2018 at 03:52PM

51
#220 - Jason / @roosjason

07/10/2020 at 08:47AM

52
#221 - Abdo Achkar / @Achkar

07/12/2015 at 05:15PM

52
#222 - Test / @goodbyetest1248

07/24/2015 at 03:53PM

52
#223 - Thomas Draper / @QuanTom561

09/27/2015 at 03:40AM

52
#224 - Rene Tianco / @murlockslol

10/29/2015 at 05:01AM

52
#225 - Roberto Gongora / @roberttt1005

10/29/2015 at 11:45PM

52
#226 - John Smith / @literacyisgood

02/08/2016 at 04:20AM

52
#227 - Eric Potter / @pottereric

05/02/2016 at 05:25PM

52
#228 - Oliver Christ / @0liverChrist

07/12/2016 at 10:38PM

53
#229 - DanSnow / @dododavid006

08/28/2015 at 02:59PM

53
#230 - Hello World / @CrisTsanNtua

09/27/2015 at 12:50PM

53
#231 - Sukovec / @Sukovec

05/11/2016 at 02:17PM

54
#232 - Louis Caruana / @louiecaruana

07/15/2015 at 04:54AM

54
#233 - Veritas / @_VeritasL

08/13/2015 at 06:31PM

54
#234 - Aurélien Lair / @aurelien_lair

11/14/2015 at 02:04PM

54
#235 - Izabel Jelenić / @IzabelJelenic

12/22/2015 at 08:23PM

54
#236 - Doru-Mihai Muntean / @dorumihai

12/01/2016 at 11:15PM

54
#237 - Phoon / @justflashhim

05/11/2019 at 03:19AM

55
#238 - broella3 / @broella3

08/20/2015 at 02:49PM

55
#239 - Stefan Knudsen / @knud32

11/01/2015 at 09:42PM

55
#240 - chaotic / @laersn

08/02/2018 at 01:27PM