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
#661 - Nolen Royalty / @NolenRoyalty

05/08/2014 at 08:09AM

13
#662 - Mark Inksa / @MInksaCS

05/10/2014 at 11:00PM

13
#663 - Hyper Bovine / @hyperbovine

05/12/2014 at 05:15PM

13
#664 - wizardwerdna / @wizardwerdna

05/16/2014 at 06:16AM

13
#665 - kwa / @kwa129

07/09/2014 at 04:22AM

13
#666 - Naoki Masuko / @nmasuko

07/11/2014 at 10:54PM

13
#667 - Michi Loro / @michiloro

07/16/2014 at 08:38AM

13
#668 - LC / @leeren

08/09/2014 at 08:02PM

13
#669 - AC / @quadface

08/23/2014 at 06:39PM

13
#670 - Michael Comerford / @MComerford1

09/20/2014 at 05:35PM

13
#671 - Michael Daffin / @James14790

10/14/2014 at 11:32AM

13
#672 - asd fsdf / @totallythr

10/30/2014 at 04:30AM

13
#673 - Frederik Vosberg / @FrediVosberg

12/08/2014 at 08:57PM

13
#674 - Steve Alison / @Steve_Alison

12/19/2014 at 10:57PM

13
#675 - Jordana Lachow / @TomofBedlam

01/04/2015 at 04:02PM

13
#676 - no name / @vimgol

01/28/2015 at 07:13PM

13
#677 - ~Nicolas_Poulain / @nicolaspoulain

01/29/2015 at 09:55PM

13
#678 - mark0829 / @mark0829

01/31/2015 at 11:38AM

13
#679 - Conor McNamara / @conortm

03/03/2015 at 11:12PM

13
#680 - thrawny / @thrawn_

03/10/2015 at 04:03PM

13
#681 - Deepak Surti / @dmsurti

03/18/2015 at 09:06AM

13
#682 - Charles A. Bouffard / @the_cabouffard

04/05/2015 at 07:00PM

13
#683 - Paul Diaconescu / @paulgtd

04/12/2015 at 09:23AM

13
#684 - Server Zero / @assaflavie

04/19/2015 at 07:25PM

13
#685 - John Clara / @johnanthclara

08/21/2015 at 05:34AM

13
#686 - ZC-死理性派 / @zecyzhang

08/21/2015 at 01:58PM

13
#687 - Ryan / @eatsleephack_

08/27/2015 at 05:24AM

13
#688 - thlix / @thlix

01/10/2016 at 10:53PM

13
#689 - Ian Trophy / @prfrgg

02/01/2016 at 08:54AM

13
#690 - Janine Cheng / @janineist

02/13/2016 at 08:50AM