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

1354 active golfers, 4166 entries

Leaderboard (lowest score wins):
13
#691 - mark0829 / @mark0829

01/31/2015 at 11:38AM

13
#692 - Conor McNamara / @conortm

03/03/2015 at 11:12PM

13
#693 - thrawny / @thrawn_

03/10/2015 at 04:03PM

13
#694 - Deepak Surti / @dmsurti

03/18/2015 at 09:06AM

13
#695 - Charles A. Bouffard / @the_cabouffard

04/05/2015 at 07:00PM

13
#696 - Paul Diaconescu / @paulgtd

04/12/2015 at 09:23AM

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

04/19/2015 at 07:25PM

13
#698 - John Clara / @johnanthclara

08/21/2015 at 05:34AM

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

08/21/2015 at 01:58PM

13
#700 - Ryan / @eatsleephack_

08/27/2015 at 05:24AM

13
#701 - thlix / @thlix

01/10/2016 at 10:53PM

13
#702 - Ian Trophy / @prfrgg

02/01/2016 at 08:54AM

13
#703 - Janine Cheng / @janineist

02/13/2016 at 08:50AM

13
#704 - Niels Madan / @nielsmadan

02/18/2016 at 12:52PM

13
#705 - Cristian Lupașcu / @clupasq

02/22/2016 at 02:36PM

13
#706 - Robert Wooner / @RobertWooner

02/29/2016 at 12:08AM

13
#707 - glepha / @glepha_vim

03/23/2016 at 02:44AM

13
#708 - Ian Malerich / @IMalerich

05/11/2016 at 06:53PM

13
#709 - vic © / @2r2w

05/20/2016 at 07:27PM

13
#710 - asdf / @AsdaasfAsdf

05/29/2016 at 07:13PM

13
#711 - Reuben Huxley / @missiontocode

06/29/2016 at 10:22PM

13
#712 - Jeremiah Goyette / @JeremiahGoyette

08/01/2016 at 05:48AM

13
#713 - Herbert S. / @herbertshlong

08/05/2016 at 11:03PM

13
#714 - timerella® / @timerella

11/17/2016 at 12:28AM

13
#715 - Pierre Maoui / @poupougnac

12/24/2016 at 02:11PM

13
#716 - Zachary Neubert / @Mr_Saturn16347

03/29/2017 at 04:01PM

13
#717 - Solomon / @Trugbildjaeger

04/02/2017 at 10:10AM

13
#718 - Alex Linden / @alexwlinden1

04/24/2017 at 04:04PM

13
#719 - Brian Hall / @_bruab_

05/03/2017 at 01:42PM

13
#720 - Remus Dalrymple / @bornintheflames

05/05/2017 at 01:14AM