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

1368 active golfers, 4206 entries

Leaderboard (lowest score wins):
13
#691 - Michael Comerford / @MComerford1

09/20/2014 at 05:35PM

13
#692 - Michael Daffin / @James14790

10/14/2014 at 11:32AM

13
#693 - asd fsdf / @totallythr

10/30/2014 at 04:30AM

13
#694 - Frederik Vosberg / @FrediVosberg

12/08/2014 at 08:57PM

13
#695 - Steve Alison / @Steve_Alison

12/19/2014 at 10:57PM

13
#696 - Jordana Lachow / @TomofBedlam

01/04/2015 at 04:02PM

13
#697 - no name / @vimgol

01/28/2015 at 07:13PM

13
#698 - ~Nicolas_Poulain / @nicolaspoulain

01/29/2015 at 09:55PM

13
#699 - mark0829 / @mark0829

01/31/2015 at 11:38AM

13
#700 - Conor McNamara / @conortm

03/03/2015 at 11:12PM

13
#701 - thrawny / @thrawn_

03/10/2015 at 04:03PM

13
#702 - Deepak Surti / @dmsurti

03/18/2015 at 09:06AM

13
#703 - Charles A. Bouffard / @the_cabouffard

04/05/2015 at 07:00PM

13
#704 - Paul Diaconescu / @paulgtd

04/12/2015 at 09:23AM

13
#705 - we’re going to need a bigger bot / @assaflavie

04/19/2015 at 07:25PM

13
#706 - John Clara / @johnanthclara

08/21/2015 at 05:34AM

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

08/21/2015 at 01:58PM

13
#708 - Ryan / @eatsleephack_

08/27/2015 at 05:24AM

13
#709 - thlix / @thlix

01/10/2016 at 10:53PM

13
#710 - Ian Trophy / @prfrgg

02/01/2016 at 08:54AM

13
#711 - Janine Cheng / @janineist

02/13/2016 at 08:50AM

13
#712 - Niels Madan / @nielsmadan

02/18/2016 at 12:52PM

13
#713 - Cristian Lupașcu / @clupasq

02/22/2016 at 02:36PM

13
#714 - Robert Wooner / @RobertWooner

02/29/2016 at 12:08AM

13
#715 - glepha / @glepha_vim

03/23/2016 at 02:44AM

13
#716 - Ian Malerich / @IMalerich

05/11/2016 at 06:53PM

13
#717 - vic © / @2r2w

05/20/2016 at 07:27PM

13
#718 - asdf / @AsdaasfAsdf

05/29/2016 at 07:13PM

13
#719 - Reuben Huxley / @missiontocode

06/29/2016 at 10:22PM

13
#720 - Jeremiah Goyette / @JeremiahGoyette

08/01/2016 at 05:48AM