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


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

0 comments


#67 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


#68 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


Created by: @BradleySmall

68 active golfers, 222 entries

Leaderboard (lowest score wins):
27
#61 - Paul Inc / @hiniol1982

08/17/2019 at 07:37PM

31
#62 - Vim Golfer / @VimGolfer6

08/03/2019 at 11:56AM

31
#63 - Mr_Djez / @DjezMr

08/18/2019 at 08:34PM

31
#64 - Jason / @roosjason

06/06/2020 at 01:42PM

36
#65 - BaffaloP 🐃🎨 / @bbaffalopp

08/07/2019 at 10:09PM

36
#66 - vicver09 / @vicver091

12/18/2019 at 11:17PM

36
#67 - Jason Neylon / @jasonneylon

03/04/2020 at 03:28PM

36
#68 - Fake Konto / @F4k3K0n70

02/15/2021 at 06:15PM