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

94 active golfers, 413 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

36
#11 - Topvimgolf Score / @topvimgolfscore

10/18/2022 at 06:41AM

36
#12 - Monkey Boy / @monkey29089

09/25/2023 at 01:43PM

36
#13 - tien / @tien40766111

12/04/2023 at 12:36PM

36
#14 - Aly Thobani / @alythobani

05/29/2024 at 11:35AM

36
#15 - Peppa Pig / @PeppaPigSg

07/02/2024 at 05:08AM

40
#16 - せいほう / @FICSQF

02/23/2021 at 07:05AM

40
#17 - "Smylers" / @Smylers2

02/23/2021 at 07:03PM

40
#18 - foobarbazqux12345 / @foobarbazqux121

03/06/2021 at 07:46PM

40
#19 - der tanzbaer / @der_tanzbaer

03/10/2021 at 07:21PM

40
#20 - roudens / @roudens2

03/30/2021 at 03:27PM

40
#21 - agricoda / @agricoda_comics

04/16/2021 at 08:26PM

40
#22 - Olle Wiklund / @Kabix

04/19/2021 at 03:01AM

40
#23 - Georg Bökman / @BokmanGeorg

07/02/2021 at 11:02PM

40
#24 - 悟史 / @A1OBJTxN5fTg5EJ

07/12/2021 at 03:39PM

40
#25 - Brendan Maginnis / @brendan_m6s

11/17/2021 at 02:04PM

40
#26 - Sammit / @somemeatjain

01/26/2022 at 11:11AM

40
#27 - Jean George / @JeanGeo20504212

02/08/2022 at 03:16PM

40
#28 - Ryan Murphy / @RyanMur92693753

05/13/2022 at 12:33AM

40
#29 - Irakli Chigvaria / @tchigvaria

05/16/2022 at 10:20AM

40
#30 - sap / @sap38838304

10/05/2022 at 06:40PM