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):
197
#91 - Marcus Stewart / @marcu5_5tewart

05/04/2021 at 05:18PM

239
#92 - Patrick Gates / @patrickgates

06/16/2021 at 09:30PM

263
#93 - Jan Troest / @jan_troest

11/04/2023 at 09:11PM

423
#94 - JDP / @JDP68649035

02/20/2021 at 06:00PM