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

< 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


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


Created by: @wisty97

68 active golfers, 86 entries

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

01/30/2019 at 04:19AM

#62 - T A / @SirAviles

02/18/2019 at 07:58PM

#63 - Titouan Teyssier / @TitouanT_

02/22/2019 at 01:56AM

#64 - Jeff Anderson / @_j3ffrey

04/30/2019 at 06:36AM

#65 - Ben M / @Sweet_Scientist

06/07/2019 at 05:47AM

#66 - vimgolfer / @vimgolfer7

10/08/2019 at 12:49PM

#67 - Jeremiah Goyette / @JeremiahGoyette

08/05/2016 at 05:55AM

#68 - Cory Knapp / @coryknapp

03/13/2016 at 08:22PM