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

0 comments


Created by: @wisty97

81 active golfers, 107 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 / @janbundesmann

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