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):
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

15
#34 - vimgolfer / @vimgolfer7

09/28/2019 at 05:02PM

15
#35 - Viktor Styrud / @ViktorStyrud

10/03/2019 at 02:21PM

15
#36 - Mario Olofo / @mario_olofo

10/21/2019 at 09:24PM

15
#37 - Frank Scholl / @fhscholl

10/27/2019 at 06:01AM

15
#38 - Ivan Volosyuk / @IvanVolosyuk

10/30/2019 at 01:30PM

15
#39 - Melvin Cheung / @MelvinCheung

11/08/2019 at 05:48PM

15
#40 - Roger Stoltz / @rogsto1

11/15/2019 at 10:16PM

15
#41 - pysnow530 / @pysnow530

11/25/2019 at 02:41PM

15
#42 - Miłosz Łakomy / @foobar01123

12/03/2019 at 12:51PM

15
#43 - Delon / @delonleonard

01/03/2020 at 01:06PM

15
#44 - Michael Meixner / @meixner62

01/23/2020 at 05:39PM

15
#45 - countime / @countime1

03/13/2020 at 09:32AM

15
#46 - RockerZZY / @rocker_zzy

06/10/2020 at 03:15PM

15
#47 - A A A / @37fatos

02/02/2021 at 05:36PM

15
#48 - Jung Yeon Park / @park_jungy

02/06/2021 at 11:27PM

15
#49 - hepebexè / @hepebexe

02/11/2021 at 05:36PM

15
#50 - 김범준 / @kmbmjn

03/10/2021 at 07:41AM

15
#51 - pikjes / @pikjes2

03/21/2021 at 07:24PM

15
#52 - Peter Pandorum / @PeterPandorum

08/15/2021 at 11:45AM

15
#53 - Roman Privalov / @RomanPrivalov

10/01/2021 at 06:40AM

16
#54 - Norbert / @mullno

08/02/2019 at 07:24PM

21
#55 - Ariel Miculas / @ArielMiculas

09/19/2019 at 02:20PM

22
#56 - Walker Boh / @walker_boh

08/02/2019 at 07:03AM

22
#57 - Lory / @Lory46845742

11/08/2019 at 12:43PM

23
#58 - Miko / @_m_ik_o_

09/29/2019 at 05:08PM

27
#59 - Miki Tebeka / @tebeka

08/04/2019 at 09:28AM

27
#60 - matthew brett / @matthewbrett

08/11/2019 at 09:28PM