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

0 comments


Created by: @wisty97

68 active golfers, 86 entries

Leaderboard (lowest score wins):
11
#31 - Fraser Cormack / @frasercrmck

03/21/2016 at 01:03PM

11
#32 - 7r6a2l / @7r6a2l

03/23/2016 at 08:43PM

11
#33 - Corsin Pfister / @corsin_pfister

03/24/2016 at 08:14PM

11
#34 - Philiphone / @Philiphone

03/26/2016 at 02:33PM

11
#35 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 05:05PM

11
#36 - Saki Gw / @Sakigw

04/03/2016 at 05:22PM

11
#37 - Robber Toe / @robbertoe

04/03/2016 at 11:21PM

11
#38 - Eero-Antero Säisä / @jakolasku

05/02/2016 at 08:19PM

11
#39 - T. Sakuma / @taku39

05/05/2016 at 02:40PM

11
#40 - tPenguinLTG / @tpenguinltg

05/10/2016 at 10:13PM

11
#41 - Daniel Teal / @coelestinian

08/31/2016 at 08:50PM

11
#42 - Kyouma / @kyoumaJohn

10/14/2016 at 09:08PM

11
#43 - Raymond Chee / @rchomium

03/05/2017 at 05:00PM

11
#44 - Andreas Hagesjö / @Ankhagge

03/21/2017 at 11:06PM

11
#45 - Daniel / @Daniel00288663

04/06/2017 at 01:32PM

11
#46 - James Houghton / @jamesthoughton

05/17/2017 at 12:07AM

11
#47 - Song Zheng / @songz

08/24/2017 at 02:32AM

11
#48 - Vim Girl / @vim_girl

08/24/2017 at 03:16AM

11
#49 - Gurukandhamoorthi / @Gurukandhamoor1

08/25/2017 at 02:15PM

11
#50 - Daniel / @0x9ABC

08/25/2017 at 06:40PM

11
#51 - Bradley M. Small / @BradleySmall

11/23/2017 at 03:00AM

11
#52 - Turkey Man / @lvturkeyman

12/16/2017 at 02:41PM

11
#53 - Paul Draghicescu / @pdragy

03/23/2018 at 05:09AM

11
#54 - Marco Meyer / @marcomeyerVFX

07/08/2018 at 12:19PM

11
#55 - slicklash / @slicklash

08/23/2018 at 01:12PM

11
#56 - Andrius Bentkus / @andriusbentkus

08/23/2018 at 01:14PM

11
#57 - Arijus / @argshook

09/03/2018 at 01:56PM

11
#58 - Brent Woo / @BrentPWoo

10/10/2018 at 09:15PM

11
#59 - Sxcy / @SxcyX

11/06/2018 at 03:34PM

11
#60 - Tomás Cetkovich / @SaladeDeMerde

01/20/2019 at 08:56PM