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 56e4fe988cf590220106e9bb

Fun With The Diagonal

change the lowercase characters on the main diagonal to uppercase

Start file
a a a a a
b b b b b
c c c c c
d d d d d
e e e e e
End file
A a a a a
b B b b b
c c C c c
d d d D d
e e e e E

View Diff

1,5c1,5
< a a a a a
< b b b b b
< c c c c c
< d d d d d
< e e e e e
---
> A a a a a
> b B b b b
> c c C c c
> d d d D d
> e e e e E

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 78 remaining solutions by signing in and submitting your own entry
#79 Cory Knapp / @coryknapp - Score: 14 - 03/13/16 @ 20:22
qqgUllljq4@qZZ

0 comments


Created by: @wisty97

79 active golfers, 103 entries

Leaderboard (lowest score wins):
11
#61 - Tinko Minko / @tandikula

01/30/2019 at 04:19AM

11
#62 - T A / @SirAviles

02/18/2019 at 07:58PM

11
#63 - 𝚃𝚒𝚝𝚘𝚞𝚊𝚗 𝚃𝚎𝚢𝚜𝚜𝚒𝚎𝚛 / @TitouanT_

02/22/2019 at 01:56AM

11
#64 - panakin skywalker / @_j3ffrey

04/30/2019 at 06:36AM

11
#65 - Ben M / @Sweet_Scientist

06/07/2019 at 05:47AM

11
#66 - vimgolfer / @vimgolfer7

10/08/2019 at 12:49PM

11
#67 - RaylanFox / @RaylanFox

04/18/2020 at 03:12PM

11
#68 - Steve Frost / @FrostSteveFrost

08/01/2020 at 07:43PM

11
#69 - Jake Grossman / @PiranaLaugh

11/13/2020 at 04:01PM

11
#70 - roudens / @roudens2

03/11/2021 at 01:18PM

11
#71 - Borna Sadeghi / @borna_sadeghi

03/19/2021 at 04:38AM

11
#72 - Alex / @AlexanderHeatl2

05/31/2022 at 04:21PM

11
#73 - Janzen / @__Coos

10/02/2022 at 01:43PM

11
#74 - James Marshall / @astrophd

10/21/2022 at 03:20AM

11
#75 - Jean George / @JeanGeo20504212

11/12/2023 at 09:10PM

11
#76 - Michael / @openemitter

12/25/2023 at 10:03PM

11
#77 - jonas-grobe / @jonas-grobe

02/04/2024 at 09:47AM

12
#78 - Jeremiah Goyette / @JeremiahGoyette

08/05/2016 at 05:55AM

14
#79 - Cory Knapp / @coryknapp

03/13/2016 at 08:22PM