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 1331 remaining solutions by signing in and submitting your own entry
#1332 Richard Kaufman / @sparragus - Score: 96 - 12/29/10 @ 14:56
:/<BS>%/<Left><Left><Right>s<Right>'aa'<Left>a<Right>/<Left><Left>x<Left><Right><Right><BS><BS><Left><Left><Left><BS><Right><Right><Right><Right><Right>xaaax/g<CR>:wq<CR>

0 comments


Created by: @wolever

1332 active golfers, 4096 entries

Leaderboard (lowest score wins):
13
#721 - Lisa Ugray / @lisa_ugray

03/16/2018 at 05:36PM

13
#722 - Fichera Gaetano / @gaetanofic

04/11/2018 at 09:24AM

13
#723 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 12:39PM

13
#724 - Tact Overflow / @muppling

06/06/2018 at 03:42PM

13
#725 - qed / @qed13308565

07/25/2018 at 04:44PM

13
#726 - 默罕默德 / @Rt6RjEAJ987Woes

01/22/2019 at 12:46PM

13
#727 - Olle NoRdesjö / @Rasinj

04/20/2019 at 09:43PM

14
#728 - Kerry Buckley / @kerryb

12/29/2010 at 08:03AM

14
#729 - johnny / @johnnychm

12/29/2010 at 01:28PM

14
#730 - Simon Edwardsson / @_SimEdw_

12/29/2010 at 04:10PM

14
#731 - George Hampton / @gdhamp

12/29/2010 at 05:24PM

14
#732 - David Rivers / @davidmrivers

12/29/2010 at 07:59PM

14
#733 - PA Parent / @paparent

12/30/2010 at 01:03AM

14
#734 - thelaney / @thelaneythelazy

12/30/2010 at 04:20AM

14
#735 - krazylegz / @krazylegz

12/30/2010 at 05:04AM

14
#736 - Andy Brett / @andrewpbrett

12/30/2010 at 08:32AM

14
#737 - Behnam Esfahbod / @zwnj

12/30/2010 at 12:59PM

14
#738 - Stephen Celis / @stephencelis

12/30/2010 at 02:43PM

14
#739 - Jim Garvin / @coderifous

12/30/2010 at 02:57PM

14
#740 - Akira Matsuda / @a_matsuda

12/30/2010 at 03:44PM

14
#741 - bmaddy / @bmaddy

12/30/2010 at 07:20PM

14
#742 - Przemysław Pawełczyk / @przemoc86

12/30/2010 at 08:30PM

14
#743 - Andrei Chirila / @andrei_chirila

12/30/2010 at 10:52PM

14
#744 - Will Hardy / @whrde

12/30/2010 at 11:34PM

14
#745 - Mikel Ward / @mikelward

12/31/2010 at 06:00AM

14
#746 - Jordan Owens / @signalhandler

12/31/2010 at 07:31PM

14
#747 - larsd / @larsd

12/31/2010 at 09:37PM

14
#748 - Richard Sanchez / @vimlearner

01/01/2011 at 06:28AM

14
#749 - Cristi Balan / @evilchelu

01/01/2011 at 06:59AM

14
#750 - El Jacko / @mrjackinc

01/03/2011 at 02:58AM