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 by @meixner62:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @BradleySmall

78 active golfers, 243 entries

Solutions by @meixner62:
15
#44 - Michael Meixner / @meixner62

01/23/2020 at 05:39PM

15
#>44 - Michael Meixner / @meixner62

01/23/2020 at 05:42PM

21
#>61 - Michael Meixner / @meixner62

01/23/2020 at 05:36PM

22
#>64 - Michael Meixner / @meixner62

01/23/2020 at 05:34PM

23
#>65 - Michael Meixner / @meixner62

01/23/2020 at 05:31PM

24
#>66 - Michael Meixner / @meixner62

01/23/2020 at 05:14PM

24
#>66 - Michael Meixner / @meixner62

01/23/2020 at 05:27PM

24
#>66 - Michael Meixner / @meixner62

01/23/2020 at 05:28PM

25
#>66 - Michael Meixner / @meixner62

01/23/2020 at 05:24PM

26
#>66 - Michael Meixner / @meixner62

01/23/2020 at 05:10PM