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 37 remaining solutions by signing in and submitting your own entry
#38 Eero-Antero Säisä / jakolasku - Score: 11 - 05/02/16 @ 20:19
qa~jlq4@aZZ

0 comments

#39 T. Sakuma / taku39 - Score: 11 - 05/05/16 @ 14:40
qq~ljq4@qZZ

0 comments

#40 tPenguinLTG / tpenguinltg - Score: 11 - 05/10/16 @ 22:13
qq~jlq4@qZZ

0 comments

#41 Daniel Teal / coelestinian - Score: 11 - 08/31/16 @ 20:50
qq~ljq4@qZZ

0 comments

#42 Kyouma / kyoumaJohn - Score: 11 - 10/14/16 @ 21:08
qq~ljq4@qZZ

0 comments

#43 Raymond Chee / rchomium - Score: 11 - 03/05/17 @ 17:00
qa~jlq4@aZZ

0 comments

#44 Andreas Hagesjö / Ankhagge - Score: 11 - 03/21/17 @ 23:06
qq~jwq4@qZZ

0 comments

#45 Daniel / Daniel00288663 - Score: 11 - 04/06/17 @ 13:32
qq~ljq4@qZZ

0 comments

#46 Jeremiah Goyette / JeremiahGoyette - Score: 12 - 08/05/16 @ 05:55
2~j.j.j.j.ZZ

0 comments

#47 coryknapp / coryknapp - Score: 14 - 03/13/16 @ 20:22
qqgUllljq4@qZZ

0 comments

Created by: wisty97

47 active golfers, 57 entries

Leaderboard (lowest score wins):
11
#1 - Cristian Lupașcu / clupasq

03/13/2016 at 05:56AM

11
#2 - Anoop Kumar / anooplive

03/13/2016 at 06:18AM

11
#3 - Urtica dioica / udioica

03/13/2016 at 06:48AM

11
#4 - Smylers / Smylers2

03/13/2016 at 08:54AM

11
#5 - Andreas Carben / meiner_eins

03/13/2016 at 09:21AM

11
#6 - Jon Krause / jkrause314

03/13/2016 at 09:24AM

11
#7 - Artur Taranchiev / ewokru

03/13/2016 at 11:25AM

11
#8 - Lifepillar / lifepillar

03/13/2016 at 11:55AM

11
#9 - Carlos A Henríquez Q / lagunex

03/13/2016 at 12:11PM

11
#10 - Petro Тrouq / zulolosi

03/13/2016 at 02:57PM

11
#11 - Dmitriy Olshevskiy / olshevskiy_dv

03/13/2016 at 03:41PM

11
#12 - James / Dronak

03/13/2016 at 03:43PM

11
#13 - Wistan Chou / wisty97

03/13/2016 at 03:45PM

11
#14 - Hao Chen / Chen_Hao

03/13/2016 at 04:17PM

11
#15 - Gabriel Dupras / SuperFalconMan

03/13/2016 at 05:16PM

11
#16 - hardaudit / hardaudit

03/13/2016 at 07:19PM

11
#17 - Jacob Degeling / JacobDegeling

03/13/2016 at 08:13PM

11
#18 - Walker Boh / walker_boh

03/14/2016 at 09:23AM

11
#19 - Jan Bundesmann / ixjab

03/14/2016 at 09:53AM

11
#20 - Tomasz Walotek / uolot

03/14/2016 at 10:14AM

11
#21 - Dimitar Dimitrov / kurkale6ka

03/14/2016 at 10:23AM

11
#22 - Victor Haffreingue / nobe_4

03/14/2016 at 12:02PM

11
#23 - John Braxler / braxler

03/14/2016 at 08:38PM

11
#24 - glepha / glepha_vim

03/15/2016 at 02:06AM

11
#25 - Ram Tamtam / ramtamtamtam

03/15/2016 at 12:33PM

11
#26 - DJ Pelland / dJ_pelland

03/15/2016 at 09:13PM

11
#27 - David Jr / DmcdonnelJr

03/15/2016 at 10:09PM

11
#28 - Rubén Chavarría T. / rchavarriat

03/16/2016 at 07:59AM

11
#29 - Tj / yrddy

03/16/2016 at 03:16PM

11
#30 - Jonathan Taylor / Jonyonson

03/20/2016 at 03:54PM

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

12
#46 - Jeremiah Goyette / JeremiahGoyette

08/05/2016 at 05:55AM

14
#47 - coryknapp / coryknapp

03/13/2016 at 08:22PM