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


Created by: @BradleySmall

42 active golfers, 126 entries

Leaderboard (lowest score wins):
15
#31 - Bill Ruddock / @biinari

09/01/2019 at 12:29AM

15
#32 - Cassandra / @kascein

09/18/2019 at 11:50PM

15
#33 - Baine Wedlock / @BaineWedlock

09/20/2019 at 10:04AM

16
#34 - Norbert / @mullno

08/02/2019 at 07:24PM

21
#35 - Ariel Miculas / @ArielMiculas

09/19/2019 at 02:20PM

22
#36 - Walker Boh / @walker_boh

08/02/2019 at 07:03AM

27
#37 - Miki Tebeka / @tebeka

08/04/2019 at 09:28AM

27
#38 - matthew brett / @matthewbrett

08/11/2019 at 09:28PM

27
#39 - Paul Inc / @hiniol1982

08/17/2019 at 07:37PM

31
#40 - Vim Golfer / @VimGolfer6

08/03/2019 at 11:56AM

31
#41 - Mr_Djez / @DjezMr

08/18/2019 at 08:34PM

36
#42 - BaffaloP 🐃🎨 / @bbaffalopp

08/07/2019 at 10:09PM