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):
36
#61 - Casey Pearring / @StandardBias

11/27/2015 at 09:16PM

36
#62 - Patrick Cichon / @the_nQL

12/07/2015 at 08:30PM

36
#63 - asdf / @AsdaasfAsdf

05/29/2016 at 07:06PM

36
#64 - T. Sakuma / @taku39

06/15/2016 at 07:37AM

36
#65 - Ram Tamtam / @ramtamtamtam

06/23/2016 at 09:06AM

36
#66 - Will / @obiwan__k3n00bi

08/30/2016 at 05:58AM

36
#67 - Bill Ruddock / @biinari

10/31/2016 at 04:59AM

36
#68 - Turkey Man / @lvturkeyman

11/11/2017 at 03:37PM

36
#69 - Benoit Mortgat / @Benoit_Mortgat

11/15/2017 at 10:45AM

36
#70 - DHM / @DHM29978992

04/25/2018 at 02:07AM

36
#71 - Emanuele Franzoni / @EFranzoni89

07/12/2018 at 09:56AM

36
#72 - Dax / @zacoxi

11/14/2018 at 12:01PM

36
#73 - Jean George / @JeanGeo20504212

11/24/2021 at 08:15PM

37
#74 - name / @name65894813

11/23/2018 at 03:47AM

38
#75 - Nicholas Marrone / @nickmarrone

09/06/2015 at 03:55PM

39
#76 - Blake Tereau / @BlakeTereau

08/11/2015 at 03:56AM

39
#77 - Stefan Countryman / @stcountryman

08/18/2015 at 10:19PM

39
#78 - Carlos A Henríquez Q / @lagunex

03/13/2016 at 01:58PM

39
#79 - glepha / @glepha_vim

03/23/2016 at 01:04AM

39
#80 - iNaKoll / @iNaKoll

05/07/2016 at 09:32PM

39
#81 - Daniel / @Daniel00288663

03/29/2017 at 01:24PM

39
#82 - Jerry Wu / @AzureSpectra

05/06/2017 at 12:01AM

39
#83 - yqu212 / @yqu212

08/03/2018 at 02:30PM

39
#84 - majo senf / @majo_senf

06/19/2019 at 12:30PM

40
#85 - Christophe Sicard / @tophsic

08/24/2015 at 11:57AM

40
#86 - Marty Boren / @beanmaximalist

11/28/2015 at 03:00AM

40
#87 - Christopher Wells / @ExcaliburZero_Z

12/19/2015 at 02:37PM

40
#88 - Peter Brynza / @v3_1

08/19/2016 at 08:11PM

40
#89 - Alexander Bessonov / @nonsleepr

04/03/2017 at 06:31PM

40
#90 - 赤佐田奈葉 / @akasatanaha_

06/25/2018 at 09:23AM