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 50b746da523acc0002000018

Checkerboard case pattern

All the squares are white. Make some of them black. But only the right ones.

Start file
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa
aaaaaaaa

End file
aAaAaAaA
AaAaAaAa
aAaAaAaA
AaAaAaAa
aAaAaAaA
AaAaAaAa
aAaAaAaA
AaAaAaAa

View Diff

1,8c1,8
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
< aaaaaaaa
---
> aAaAaAaA
> AaAaAaAa
> aAaAaAaA
> AaAaAaAa
> aAaAaAaA
> AaAaAaAa
> aAaAaAaA
> AaAaAaAa

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 39 remaining solutions by signing in and submitting your own entry
#40 Kirill Gordeenko / kgordeenko - Score: 24 - 02/05/14 @ 14:17
:%s/aa/aA/g<CR>qaV~kkq4@aZZ

0 comments


#41 Oh fear / ohfear_num - Score: 25 - 12/01/12 @ 22:20
qql~l~l~l~w~l~l~l~wq3@qZZ

0 comments


#42 Ravi S Sinha / ambidextrousTx - Score: 25 - 12/02/12 @ 20:39
qal~l~l~l~w~l~l~l~wq3@aZZ

0 comments


#43 Michael / patheticpat - Score: 25 - 12/17/12 @ 09:51
8dd4IaA<Esc>o<Esc>4IAa<Esc>ygg3PGo<Esc>ZZ

0 comments


#44 James / Dronak - Score: 25 - 09/03/13 @ 02:24
qql~l~l~l~+~l~l~l~+q3@qZZ

0 comments


#45 Eric Andres / eric_m_andres - Score: 26 - 12/07/12 @ 18:29
l~l~l~l~yypV~Vky3P9GdGo<Esc>ZZ

0 comments


#46 XGOLFER / vimg0lfer - Score: 27 - 01/05/13 @ 02:32
qql~l~l~l~0j~l~l~l~0jq3@qZZ

0 comments


#47 Woojung Kim 김우중 / _kimwz - Score: 27 - 07/17/13 @ 04:48
lqa~lq3@aw4@aVky3P:9,14d<CR>ZZ

0 comments


#48 Pradeep Kumar / pradeep6kumar - Score: 30 - 01/12/13 @ 04:36
l~l.l.l.2G.l.l.l.gg2Yj3p9G6DZZ

0 comments


#49 Chris Maguire / chriswmaguire - Score: 51 - 11/29/12 @ 16:34
:%s/\r<BS>n/a/g<CR>:s/aa/aA/g<CR>:s/\(\w\{8\}\)\w/\1\r/g<CR>xZZ

0 comments


Created by: udioica

49 active golfers, 106 entries

Leaderboard (lowest score wins):
15
#1 - Kerson Hsiao / KersonHsiao

11/30/2012 at 01:46AM

15
#2 - Urtica dioica / udioica

11/30/2012 at 02:12AM

15
#3 - John Braxler / braxler

07/23/2014 at 02:36PM

16
#4 - Conner McDaniel / connermcd

11/29/2012 at 12:12PM

16
#5 - dimsharav / dimsharav

11/30/2012 at 01:34PM

16
#6 - Matt Garriott / GarriottMatt

12/08/2012 at 11:51PM

16
#7 - Ray Lehtiniemi / rayll

12/09/2012 at 09:24AM

16
#8 - Édouard M'tou / DouardM

12/19/2012 at 04:15PM

16
#9 - Kai Yuan / kentyuan

02/25/2013 at 01:53AM

16
#10 - Al Stanforth / AlStanforth

05/01/2013 at 03:19PM

16
#11 - Tyler / tylerbindon

11/15/2013 at 03:07AM

16
#12 - Jared Meyering / Jmeyering

02/28/2014 at 10:25PM

16
#13 - Joonas Pihlajamaa / jokkebk

03/18/2014 at 10:12AM

16
#14 - pftb12345 / pftb12345

04/26/2015 at 09:53AM

16
#15 - mark0829 / mark0829

07/01/2015 at 06:50AM

17
#16 - Daniel Lundin / danielundin

11/29/2012 at 02:07PM

17
#17 - Marcin Sza / coot_

11/29/2012 at 03:14PM

17
#18 - Vasil Sakarov / vsakarov

11/30/2012 at 12:53AM

17
#19 - a24f0600 / a24f0600

11/30/2012 at 11:54AM

17
#20 - Lieven Keersmaekers / LievenKeersmaek

11/30/2012 at 03:53PM

17
#21 - Brian Stolz / tecnobrat

11/30/2012 at 07:15PM

17
#22 - Mattiassich Ákos / mattiassicha

12/02/2012 at 07:44AM

17
#23 - Daniel Jonsson / DanielJonss

01/18/2013 at 12:41PM

17
#24 - Jon Krause / jkrause314

02/12/2016 at 09:28PM

18
#25 - Scott McGinness / scottie_000

11/29/2012 at 02:51PM

18
#26 - Adelar S. Queiróz / adelarsq

11/29/2012 at 10:13PM

18
#27 - Roberto Bonvallet / rbonvall

04/13/2013 at 05:41PM

19
#28 - Hubba / HubbaBubbaFett

11/29/2012 at 08:16PM

19
#29 - Johnny Tong / johnnytong

11/30/2012 at 01:10AM

19
#30 - Piotr Śniegowski / PiotrSniegowski

06/06/2013 at 12:58PM