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

1369 active golfers, 4210 entries

Leaderboard (lowest score wins):
13
#721 - Jeremiah Goyette / @JeremiahGoyette

08/01/2016 at 05:48AM

13
#722 - Herbert S. / @herbertshlong

08/05/2016 at 11:03PM

13
#723 - timerella® / @timerella

11/17/2016 at 12:28AM

13
#724 - Pierre Maoui / @poupougnac

12/24/2016 at 02:11PM

13
#725 - Zachary Neubert / @Mr_Saturn16347

03/29/2017 at 04:01PM

13
#726 - Solomon / @Trugbildjaeger

04/02/2017 at 10:10AM

13
#727 - Alex Linden / @alexwlinden1

04/24/2017 at 04:04PM

13
#728 - Brian Hall / @_bruab_

05/03/2017 at 01:42PM

13
#729 - Remus Dalrymple / @bornintheflames

05/05/2017 at 01:14AM

13
#730 - Jerry Wu / @AzureSpectra

05/05/2017 at 06:24PM

13
#731 - jakeroberts / @jakeroberts

05/29/2017 at 03:09PM

13
#732 - Carl Egbert / @CarlOEgbert

06/10/2017 at 12:12AM

13
#733 - moritz / @moritz45081535

06/18/2017 at 04:05PM

13
#734 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 01:34PM

13
#735 - Young Kim / @youngkim98

08/03/2017 at 07:51PM

13
#736 - Jacob Buete / @JBuete

08/31/2017 at 06:17AM

13
#737 - Daniel / @0x9ABC

09/03/2017 at 01:19PM

13
#738 - Collin Smith / @CollinSmith1990

12/10/2017 at 06:42AM

13
#739 - Luke Parsons / @lukeparsons

12/29/2017 at 10:25AM

13
#740 - Simon Cheng / @bambooraccoon

01/25/2018 at 06:02PM

13
#741 - John C Shea / @MHSSachems

01/29/2018 at 12:05PM

13
#742 - Arijus / @argshook

02/07/2018 at 09:35AM

13
#743 - Lisa Ugray / @lisa_ugray

03/16/2018 at 05:36PM

13
#744 - Fichera Gaetano / @gaetanofic

04/11/2018 at 09:24AM

13
#745 - Jonathan Camilleri / @Too_Many_Taken

05/26/2018 at 12:39PM

13
#746 - Tact Overflow / @muppling

06/06/2018 at 03:42PM

13
#747 - qed / @qed13308565

07/25/2018 at 04:44PM

13
#748 - 默罕默德 / @Rt6RjEAJ987Woes

01/22/2019 at 12:46PM

13
#749 - Olle NoRdesjö / @Rasinj

04/20/2019 at 09:43PM

14
#750 - Kerry Buckley / @kerryb

12/29/2010 at 08:03AM