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 60 remaining solutions by signing in and submitting your own entry
#61 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

61 active golfers, 164 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

15
#4 - Иван / @wansmer

05/04/2023 at 08:43AM

15
#5 - Peppa Pig / @PeppaPigSg

06/09/2024 at 07:28AM

15
#6 - nickGPT / @nickandbro

08/28/2024 at 07:16PM

16
#7 - Conner McDaniel / @connermcd

11/29/2012 at 12:12PM

16
#8 - dimsharav / @dimsharav

11/30/2012 at 01:34PM

16
#9 - Matt Garriott / @GarriottMatt

12/08/2012 at 11:51PM

16
#10 - Ray Lehtiniemi / @rayll

12/09/2012 at 09:24AM

16
#11 - Édouard M'tou / @DouardM

12/19/2012 at 04:15PM

16
#12 - Kai Yuan / @kentyuan

02/25/2013 at 01:53AM

16
#13 - Al Stanforth / @AlStanforth

05/01/2013 at 03:19PM

16
#14 - Tyler / @tylerbindon

11/15/2013 at 03:07AM

16
#15 - Jared Meyering / @Jmeyering

02/28/2014 at 10:25PM

16
#16 - Joonas Pihlajamaa / @jokkebk

03/18/2014 at 10:12AM

16
#17 - pftb12345 / @pftb12345

04/26/2015 at 09:53AM

16
#18 - mark0829 / @mark0829

07/01/2015 at 06:50AM

16
#19 - Janzen / @__Coos

09/28/2022 at 12:18PM

17
#20 - Daniel Lundin / @danielundin

11/29/2012 at 02:07PM

17
#21 - Marcin Szamotulski / @me_coot

11/29/2012 at 03:14PM

17
#22 - Vasil Sakarov / @vsakarov

11/30/2012 at 12:53AM

17
#23 - a24f0600 / @a24f0600

11/30/2012 at 11:54AM

17
#24 - Lieven Keersmaekers / @LievenKeersmaek

11/30/2012 at 03:53PM

17
#25 - tecnobrat ⚾️👨‍💻 Brian 🥄🇨🇦 / @tecnobrat

11/30/2012 at 07:15PM

17
#26 - Mattiassich Ákos / @mattiassicha

12/02/2012 at 07:44AM

17
#27 - Daniel Jonsson / @DanielJonss

01/18/2013 at 12:41PM

17
#28 - Jon Krause / @jkrause314

02/12/2016 at 09:28PM

17
#29 - shahanavaz m / @shahanavazm

04/04/2024 at 11:16PM

18
#30 - Scott McGinness / @scottie_000

11/29/2012 at 02:51PM