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

28 active golfers, 114 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

40
#9 - せいほう / @FICSQF

02/23/2021 at 07:05AM

40
#10 - Smylers / @Smylers2

02/23/2021 at 07:03PM

40
#11 - foobarbazqux12345 / @foobarbazqux121

03/06/2021 at 07:46PM

40
#12 - der tanzbaer / @der_tanzbaer

03/10/2021 at 07:21PM

40
#13 - roudens / @roudens2

03/30/2021 at 03:27PM

40
#14 - agricoda / @agricoda_comics

04/16/2021 at 08:26PM

40
#15 - Olle Wiklund / @Kabix

04/19/2021 at 03:01AM

50
#16 - a b c / @abc41115243

03/12/2021 at 07:40PM

60
#17 - Michael / @linux478

02/21/2021 at 04:54AM

61
#18 - Selvaganapathy P / @canabady

02/20/2021 at 04:53AM

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

04/06/2021 at 06:07PM

80
#20 - VimGolf / @VimGolf8

04/02/2021 at 10:43AM

81
#21 - Strabs / @artistavenue

02/22/2021 at 11:49AM

83
#22 - Martin LOUAZEL / @Zbrahark

02/25/2021 at 08:37AM

83
#23 - geosucker / @geosucker

02/25/2021 at 06:08PM

103
#24 - Danny Sanchez / @Dane1410s

03/14/2021 at 11:03PM

108
#25 - shaik azhar madar / @azarudu

04/11/2021 at 09:33AM

135
#26 - kp097hg56 / @somewaterplease

03/13/2021 at 08:01PM

182
#27 - zmf_tim / @zmf_tim

03/25/2021 at 10:55PM

423
#28 - JDP / @JDP68649035

02/20/2021 at 06:00PM