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

274 active golfers, 1061 entries

Leaderboard (lowest score wins):
50
#211 - Herbert S. / @herbertshlong

08/10/2016 at 12:53AM

50
#212 - caplod / @caplod

03/26/2017 at 03:07PM

50
#213 - slicklash / @slicklash

03/29/2018 at 12:54PM

50
#214 - Bitt Faulk / @bittfaulk

02/18/2020 at 10:10PM

51
#215 - aisapatino / @aisapatino

07/27/2015 at 05:13AM

51
#216 - Yang Pengcheng / @nail1208

08/16/2015 at 03:35PM

51
#217 - alex / @alexAngle8

08/22/2015 at 04:16AM

51
#218 - ren / @wxoc

10/13/2015 at 08:29PM

51
#219 - Anshu Avinash / @anshu_avinash

10/17/2015 at 10:01PM

51
#220 - Wilmer Bandres / @WilmerBandres

12/01/2015 at 11:40PM

51
#221 - Ashley Ryan / @aviendha25

12/21/2015 at 05:41PM

51
#222 - Austin Wood / @indiesquidge

01/27/2016 at 05:46PM

51
#223 - Kevin R / @TheKevinthDay

05/12/2016 at 08:48PM

51
#224 - Defts = DvToons / @defts

07/22/2016 at 01:18PM

51
#225 - usermod / @g_usermod

11/20/2017 at 03:31PM

51
#226 - Dylan Waits / @pianoman320

07/15/2018 at 03:53AM

51
#227 - Jurica / @Jurica34581259

11/16/2018 at 03:52PM

51
#228 - Jason / @roosjason

07/10/2020 at 08:47AM

51
#229 - 咸糖xiantang / @GIA917229015

01/04/2024 at 03:35PM

52
#230 - Abdo Achkar / @Achkar

07/12/2015 at 05:15PM

52
#231 - Test / @goodbyetest1248

07/24/2015 at 03:53PM

52
#232 - Thomas Draper / @QuanTom561

09/27/2015 at 03:40AM

52
#233 - Rene Tianco / @murlockslol

10/29/2015 at 05:01AM

52
#234 - Roberto Gongora / @roberttt1005

10/29/2015 at 11:45PM

52
#235 - John Smith / @literacyisgood

02/08/2016 at 04:20AM

52
#236 - Eric Potter / @pottereric

05/02/2016 at 05:25PM

52
#237 - Oliver Christ / @0liverChrist

07/12/2016 at 10:38PM

53
#238 - DanSnow / @dododavid006

08/28/2015 at 02:59PM

53
#239 - Hello World / @CrisTsanNtua

09/27/2015 at 12:50PM

53
#240 - Sukovec / @Sukovec

05/11/2016 at 02:17PM