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 6030936d3f9325000c6aa0aa

CSV to MD format

To convert a CSV list to Markdown list

Start file
apple,fruit
onion,vegetable
cherry,fruit
garlic,vegetable
ginger,vegetable
rose,flower
orange,fruit
jasmine,flower
End file
- flower
        - jasmine
        - rose
- fruit
        - orange
        - cherry
        - apple
- vegetable
        - ginger
        - garlic
        - onion

View Diff

1,8c1,11
< apple,fruit
< onion,vegetable
< cherry,fruit
< garlic,vegetable
< ginger,vegetable
< rose,flower
< orange,fruit
< jasmine,flower
---
> - flower
>         - jasmine
>         - rose
> - fruit
>         - orange
>         - cherry
>         - apple
> - vegetable
>         - ginger
>         - garlic
>         - onion

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 48 remaining solutions by signing in and submitting your own entry
#49 JDP / @JDP68649035 - Score: 423 - 02/20/21 @ 18:00
?<BS>:g/flower/d<CR>u:s<BS>%s/flower/ <BS><CR>ggPuuuuujkkkkkkkkkkkkjjjjj:s/<BS><BS><BS>:%w<BS>s/flower/<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>uuuuuuukkkkkkkkpu-06jkkkkkkkk6jkkkkkkkkkk5jwwqwdwnq@wggpuouu<Esc>uO<Esc>p2jw#qwdwnq@w@wggo<Esc>pj*qwdwnq@q#qu<Esc>qqwdwq@wjkuuqwdwnq2wuqwdwnq2<Esc>@wggo<Esc>pGdwggjudwggo<Esc>p8jdb8ko<Esc>p9jdwudaw8ko<Esc>p4jdaw3kO<Esc>p2jdbkO<Esc>p:g/,<BS><BS><BS><BS><BS>jjddjddjjd<Esc>3ddddpkkddpddpkkddp<C-V><Up><Down><Down><Esc><Esc><C-V><Up><Up>Au<BS><Esc><C-V><Down><Down>0$A<BS><Esc>uqwxkjj0qkujjkkh0$qw$xjq#k<Esc>jkluuu<C-R><Esc>qw$xjq@w@w<C-V>ggI- <Esc>j<C-V>jI<Esc><C-V>j8I <Esc>3j<C-V>jj8I <Esc>4j<C-V>jj8I <Esc>:wq<CR>

0 comments


Created by: @canabady

49 active golfers, 190 entries

Leaderboard (lowest score wins):
36
#1 - Jon Krause / @jkrause314

02/25/2021 at 12:06AM

36
#2 - John Braxler / @braxler

02/25/2021 at 12:16AM

36
#3 - A A A / @37fatos

03/11/2021 at 10:45PM

36
#4 - maxtong / @maxtong1987

03/13/2021 at 04:01AM

36
#5 - Eric Söderström / @eksoderstrom

03/16/2021 at 05:03PM

36
#6 - Miłosz Łakomy / @foobar01123

03/21/2021 at 10:38AM

36
#7 - pikjes / @pikjes2

03/21/2021 at 01:02PM

36
#8 - デニス / @rolzy4

04/05/2021 at 12:34AM

36
#9 - br_bookbinder / @br_bookbinder

04/29/2021 at 08:15PM

36
#10 - Roman Privalov / @RomanPrivalov

08/29/2021 at 11:52AM

40
#11 - せいほう / @FICSQF

02/23/2021 at 07:05AM

40
#12 - Smylers / @Smylers2

02/23/2021 at 07:03PM

40
#13 - foobarbazqux12345 / @foobarbazqux121

03/06/2021 at 07:46PM

40
#14 - der tanzbaer / @der_tanzbaer

03/10/2021 at 07:21PM

40
#15 - roudens / @roudens2

03/30/2021 at 03:27PM

40
#16 - agricoda / @agricoda_comics

04/16/2021 at 08:26PM

40
#17 - Olle Wiklund / @Kabix

04/19/2021 at 03:01AM

40
#18 - Georg Bökman / @BokmanGeorg

07/02/2021 at 11:02PM

40
#19 - 悟史 / @A1OBJTxN5fTg5EJ

07/12/2021 at 03:39PM

50
#20 - a b c / @abc41115243

03/12/2021 at 07:40PM

60
#21 - Michael / @linux478

02/21/2021 at 04:54AM

61
#22 - Selvaganapathy P / @canabady

02/20/2021 at 04:53AM

62
#23 - Kurtis D. Miller / @phdkurt

05/26/2021 at 05:17PM

65
#24 - Peter Salvi / @salvipeter

05/20/2021 at 09:10PM

67
#25 - Dmitry Antonyuk / @AntonyukDmitry

08/27/2021 at 08:06PM

77
#26 - tyfrasc15@gmail.com / @tyfrasc15

04/06/2021 at 06:07PM

80
#27 - VimGolf / @VimGolf8

04/02/2021 at 10:43AM

81
#28 - Strabs / @artistavenue

02/22/2021 at 11:49AM

82
#29 - simplelife2010 / @simplelife20101

05/13/2021 at 10:02AM

83
#30 - Martin LOUAZEL / @Zbrahark

02/25/2021 at 08:37AM