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

91 active golfers, 388 entries

Leaderboard (lowest score wins):
50
#31 - a b c / @abc41115243

03/12/2021 at 07:40PM

50
#32 - 深窓の令嬢@ドクター / @arbino1031

01/05/2022 at 02:16PM

59
#33 - Michael / @triorph

11/10/2021 at 07:13AM

60
#34 - Michael / @linux478

02/21/2021 at 04:54AM

61
#35 - Selvaganapathy P / @canabady

02/20/2021 at 04:53AM

61
#36 - quemeraisc / @quemeraisc

09/16/2022 at 03:04PM

62
#37 - Kurtis D. Miller / @phdkurt

05/26/2021 at 05:17PM

65
#38 - Peter Salvi / @salvipeter

05/20/2021 at 09:10PM

65
#39 - Siddharth Murali / @SidTweetsALess

07/06/2022 at 06:37AM

67
#40 - Dmitry Antonyuk / @dm_antonyuk

08/27/2021 at 08:06PM

69
#41 - $HA-|| / @s_k0731

11/29/2021 at 05:39PM

70
#42 - Hugo O Rivera / @roguh

12/29/2023 at 04:29AM

71
#43 - shikitanrei / @shikitanrei

02/10/2024 at 03:40AM

72
#44 - Léo / @Leo58369183

08/25/2022 at 02:41PM

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

04/06/2021 at 06:07PM

77
#46 - BuddhaBong / @cptbbong

06/14/2022 at 03:26AM

79
#47 - Игорь Квачёнок / @IKvacenok

06/14/2023 at 03:51PM

80
#48 - VimGolf / @VimGolf8

04/02/2021 at 10:43AM

81
#49 - Strabs / @artistavenue

02/22/2021 at 11:49AM

82
#50 - simplelife2010 / @simplelife20101

05/13/2021 at 10:02AM

82
#51 - Christopher Williams / @chrstphrsnw

12/19/2021 at 11:13PM

83
#52 - Martin LOUAZEL / @Zbrahark

02/25/2021 at 08:37AM

83
#53 - geosucker / @geosucker

02/25/2021 at 06:08PM

83
#54 - Yondonjamts Ganzorig / @yondonjamts_g

08/13/2021 at 03:01AM

84
#55 - auruby / @HenGreneggs

11/05/2021 at 02:05AM

85
#56 - Matt Vaughn / @mattttvaughn

05/15/2021 at 07:46PM

85
#57 - Bspammer / @Bspammer

08/14/2021 at 03:59AM

86
#58 - Deepanshu Gupta / @_Deepanshu_

05/03/2021 at 07:11PM

86
#59 - Bruce Lee / @BruceLeeIII

07/25/2021 at 11:08PM

86
#60 - James Duffy / @jduffy3

04/12/2022 at 01:47AM