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):
15
#1 - Dan / @dstein64

08/02/2019 at 03:51AM

15
#2 - Bradley M. Small / @BradleySmall

08/02/2019 at 04:09AM

15
#3 - Jon Krause / @jkrause314

08/02/2019 at 04:39AM

15
#4 - james_bunch / @james_bunch

08/02/2019 at 05:11AM

15
#5 - serent / @serent

08/02/2019 at 05:37AM

15
#6 - garry quested / @GQuested

08/02/2019 at 01:37PM

15
#7 - Malcolm Sharpe / @blueblimpms

08/02/2019 at 02:05PM

15
#8 - Tinko Minko / @tandikula

08/02/2019 at 06:33PM

15
#9 - Ron Holt / @ron_holt

08/03/2019 at 01:35AM

15
#10 - Jonathan Eidsness / @jonathaneidsnes

08/03/2019 at 02:42AM

15
#11 - Joel Elkins / @dice_tea

08/03/2019 at 07:18PM

15
#12 - XiaoXiaoLui / @XiaoXiaoLui1

08/03/2019 at 07:51PM

15
#13 - Matt Vaughn / @mattttvaughn

08/04/2019 at 05:05AM

15
#14 - Adam Katz / @AdamKat01277576

08/04/2019 at 01:46PM

15
#15 - "Smylers" / @Smylers2

08/04/2019 at 07:18PM

15
#16 - ใ‚Šใ‚“ใ” / @ringo9971

08/05/2019 at 08:46AM

15
#17 - Jฬ•ฬปอ…oฬ ฬปฬ˜hฬผฬ–nฬ™ฬฉฬอ• Dอฬนฬ—ฬ—oeฬถฬฑฬฅอ™ / @JohnJDoe2

08/05/2019 at 09:43AM

15
#18 - John Braxler / @braxler

08/05/2019 at 08:21PM

15
#19 - ๅผ ๅฟ ่ฃ / @ZZRcooperation

08/06/2019 at 12:22PM

15
#20 - Saki Gw / @Sakigw

08/07/2019 at 12:14PM

15
#21 - sooqua / @sooqua

08/07/2019 at 04:15PM

15
#22 - Andrรฉ Reigoto / @AndreReigoto

08/09/2019 at 12:03AM

15
#23 - NieDลผejkob / @NieDzejkob

08/09/2019 at 11:44AM

15
#24 - Matt Tuttle / @Matt_Tuttle

08/09/2019 at 04:31PM

15
#25 - ๐šƒ๐š’๐š๐š˜๐šž๐šŠ๐š— ๐šƒ๐šŽ๐šข๐šœ๐šœ๐š’๐šŽ๐š› / @TitouanT_

08/10/2019 at 08:24PM

15
#26 - Martin Delille / @martinodelilo

08/13/2019 at 06:38PM

15
#27 - Adam Hartz / @awareofnow

08/18/2019 at 04:27AM

15
#28 - theBecwar / @thebecwar

08/18/2019 at 03:29PM

15
#29 - Dax / @zacoxi

08/20/2019 at 08:14AM

15
#30 - Simon Wilkinson / @simondwilkinson

08/27/2019 at 11:13AM