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 5d4384d8654b7b00065af0de

Song Transcription Oops

When transcribing vocal music to Canjo Tab you can start by finding the lowest note and assigning that to zero and working your way up from there. However, without fail, I tend to miscount the notes and when I am near done I find a lower note. I mark this with a "z". This means I have to increase all the previous ones by 1. just a sting of numbers :)

Start file
00024432210000024777
664444777642345401222
43210000122243210z0
End file
11135543321111135888
775555888753456512333
5432111123335432101

View Diff

1,3c1,3
< 00024432210000024777
< 664444777642345401222
< 43210000122243210z0
---
> 11135543321111135888
> 775555888753456512333
> 5432111123335432101

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 73 remaining solutions by signing in and submitting your own entry
#74 BaffaloP πŸƒπŸŽ¨ / @bbaffalopp - Score: 36 - 08/07/19 @ 22:09
:%s/./& /g<CR><C-O>qq<C-A>wq58@qbbr0:%s/ //g<CR>ZZ

0 comments


#75 vicver09 / @vicver091 - Score: 36 - 12/18/19 @ 23:17
qqa <Esc>h<C-A>lxq19@q<CR>19@qr3l.<CR>18@qhhr0lxZZ

0 comments


#76 Jason Neylon / @jasonneylon - Score: 36 - 03/04/20 @ 15:28
qacl<C-R>=<C-R>"+1<CR><Esc>lq19@a+20@a@a+17@axa1<Esc>ZZ

0 comments


#77 Fake Konto / @F4k3K0n70 - Score: 36 - 02/15/21 @ 18:15
:%s/./& /g<CR><C-O>qq<C-A>wq58@qbbr0:%s/ //g<CR>ZZ

0 comments


#78 μœΌμ•™ / @meri2727 - Score: 36 - 10/11/23 @ 13:18
:%s/./& /g<CR><C-O>qq<C-A>wq58@qbbr0:%s/ //g<CR>ZZ

0 comments


Created by: @BradleySmall

78 active golfers, 243 entries

Leaderboard (lowest score wins):
21
#61 - Ariel Miculas / @ArielMiculas

09/19/2019 at 02:20PM

21
#62 - nickGPT / @nickandbro

08/24/2024 at 02:45PM

22
#63 - Walker Boh / @walker_boh

08/02/2019 at 07:03AM

22
#64 - Lory / @Lory46845742

11/08/2019 at 12:43PM

23
#65 - Miko / @_m_ik_o_

09/29/2019 at 05:08PM

23
#66 - vimgolfaccfekxh / @vimgolfaccfekxh

10/30/2022 at 03:04PM

27
#67 - Miki Tebeka / @tebeka

08/04/2019 at 09:28AM

27
#68 - matthew brett / @matthewbrett

08/11/2019 at 09:28PM

27
#69 - Paul Inc / @hiniol1982

08/17/2019 at 07:37PM

31
#70 - Vim Golfer / @VimGolfer6

08/03/2019 at 11:56AM

31
#71 - Mr_Djez / @DjezMr

08/18/2019 at 08:34PM

31
#72 - Jason / @roosjason

06/06/2020 at 01:42PM

34
#73 - Ilay Skutelsky / @ISkutelsky

08/05/2022 at 09:07PM

36
#74 - BaffaloP πŸƒπŸŽ¨ / @bbaffalopp

08/07/2019 at 10:09PM

36
#75 - vicver09 / @vicver091

12/18/2019 at 11:17PM

36
#76 - Jason Neylon / @jasonneylon

03/04/2020 at 03:28PM

36
#77 - Fake Konto / @F4k3K0n70

02/15/2021 at 06:15PM

36
#78 - μœΌμ•™ / @meri2727

10/11/2023 at 01:18PM