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 4d1a8bf2b8cb3409320002c4

Search and Replace 0

Replace every instance of 'aaa' with 'xaaax'.

Start file
aaa
aab
abb
bbb
aaa
aab
abb
bbb
aaa
aab
abb
bbb
aaa
aab
abb
bbb
aaa
aab
abb
bbb
End file
xaaax
aab
abb
bbb
xaaax
aab
abb
bbb
xaaax
aab
abb
bbb
xaaax
aab
abb
bbb
xaaax
aab
abb
bbb

View Diff

1c1
< aaa
---
> xaaax
5c5
< aaa
---
> xaaax
9c9
< aaa
---
> xaaax
13c13
< aaa
---
> xaaax
17c17
< aaa
---
> xaaax

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 1451 remaining solutions by signing in and submitting your own entry
#1452 Zac sliker / @Zacsliker - Score: 111 - 01/29/20 @ 16:26
i<Esc>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dwi<50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Esc>:wq!<CR>

0 comments


Created by: @wolever

1452 active golfers, 4388 entries

Leaderboard (lowest score wins):
14
#931 - Ivo Blöchliger / @aigledesalpes

08/04/2019 at 08:34PM

14
#932 - お-せ-よ- / @OhSayYo

08/26/2019 at 10:43PM

14
#933 - José / @AngelGaldamez

08/28/2019 at 03:30AM

14
#934 - ciela / @lededex

08/28/2019 at 07:04PM

14
#935 - Hans Lidiki / @HLidiki

09/07/2019 at 06:04PM

14
#936 - Ariel Miculas / @ArielMiculas

09/19/2019 at 03:24PM

14
#937 - GrimmT / @GrimmT10

11/02/2019 at 09:17AM

14
#938 - Tokos Apos / @AposTokosapos

11/04/2019 at 12:26PM

14
#939 - Timo Böhm / @TimoBohm

11/26/2019 at 09:31AM

14
#940 - Patrick / @Pattywack18

01/05/2020 at 09:23PM

14
#941 - JimmyGymglish / @JGymglish

01/15/2020 at 11:08AM

14
#942 - Ben Guericke / @ben_guericke

01/22/2020 at 05:26PM

14
#943 - əarth simulator / @eidoloncity

02/06/2020 at 10:30PM

14
#944 - Sanchez / @r0756108

03/11/2020 at 10:35AM

14
#945 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/17/2020 at 10:36PM

15
#946 - Tom Adams / @holizz

12/29/2010 at 01:31AM

15
#947 - Fictorial / @fictorial

12/29/2010 at 06:13AM

15
#948 - Gautier / @Gowtier

12/29/2010 at 12:38PM

15
#949 - Lee Jarvis / @lee_jarvis

12/29/2010 at 03:52PM

15
#950 - Rajit Singh / @rajitbsingh

12/29/2010 at 11:25PM

15
#951 - uuu / @uu59

12/30/2010 at 01:50AM

15
#952 - Ron Gejman / @rongejman

12/30/2010 at 06:48AM

15
#953 - Roland Crosby / @roooooland

12/30/2010 at 08:55AM

15
#954 - Marc Simonin / @TheGnorf

12/30/2010 at 11:40AM

15
#955 - garygordon / @garygordon

12/31/2010 at 12:49AM

15
#956 - Eivind Jahren / @HaskellElephant

01/19/2011 at 12:52PM

15
#957 - captain_morgan / @captain_morgan

04/21/2011 at 10:23PM

15
#958 - Rolf K. / @mindleftbody

06/17/2011 at 01:08PM

15
#959 - James / @defactojames

10/18/2012 at 01:45AM

15
#960 - Nicolas Friedli / @NicolasFriedli

10/29/2012 at 05:17PM