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):
18
#31 - Adelar S. Queiróz / @adelarsq

11/29/2012 at 10:13PM

18
#32 - Roberto Bonvallet / @rbonvall

04/13/2013 at 05:41PM

19
#33 - Hubba / @HubbaBubbaFett

11/29/2012 at 08:16PM

19
#34 - Johnny Tong / @johnnytong

11/30/2012 at 01:10AM

19
#35 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 12:58PM

20
#36 - じょんあば / @john_ababa

12/02/2012 at 04:42PM

20
#37 - Marco Hinz / @_mhinz_

05/24/2013 at 07:07PM

20
#38 - POSIX / @po6ix

01/22/2022 at 03:41PM

20
#39 - Alex / @AlexanderHeatl2

07/08/2022 at 11:59PM

21
#40 - Caek / @Caek_

09/19/2014 at 12:40AM

23
#41 - Trevor Powell / @DoomedBunnies

12/05/2012 at 05:12AM

23
#42 - Heath Patterson / @HeathPatterson

08/03/2013 at 11:29PM

23
#43 - squdle / @squdle

06/17/2017 at 09:16AM

24
#44 - Thijs Brobbel / @tiesmaster

11/30/2012 at 05:18PM

24
#45 - Justin / @justinjaffray

04/24/2013 at 01:23AM

24
#46 - cj / @cj01101

10/24/2013 at 05:37PM

24
#47 - Kirill Gordeenko / @kgordeenko

02/05/2014 at 02:17PM

24
#48 - mindgitrwx / @mindgitrwx

09/06/2020 at 09:21AM

24
#49 - russellzhaomao / @russellzhaomao

06/07/2022 at 08:39AM

25
#50 - Oh fear / @ohfear_num

12/01/2012 at 10:20PM

25
#51 - Ravi S Sinha / @ambidextrousTx

12/02/2012 at 08:39PM

25
#52 - Michael / @patheticpat

12/17/2012 at 09:51AM

25
#53 - James / @Dronak

09/03/2013 at 02:24AM

25
#54 - Bitt Faulk / @bittfaulk

03/05/2020 at 08:04PM

25
#55 - steve / @steve35773420

03/04/2023 at 06:48PM

25
#56 - luke37842 / @luke37842

11/12/2024 at 06:38PM

26
#57 - Eric Andres / @eric_m_andres

12/07/2012 at 06:29PM

27
#58 - XGOLFER / @vimg0lfer

01/05/2013 at 02:32AM

27
#59 - Woojung Kim 김우중 / @_kimwz

07/17/2013 at 04:48AM

30
#60 - Pradeep Kumar 🇮🇳🇮🇳🇮🇳🇮🇱🇮🇱🇮🇱 / @pradeep6kumar

01/12/2013 at 04:36AM