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
#661 - Dimitar Dimitrov / @kurkale6ka

10/18/2013 at 03:57PM

13
#662 - thasso / @thasso23

10/27/2013 at 06:33PM

13
#663 - Fnord Everywhere / @FnordE

10/30/2013 at 03:10PM

13
#664 - pyrhho / @pyrhho

11/08/2013 at 06:34PM

13
#665 - gary.klindt@googlema / @garstekli

11/12/2013 at 11:58PM

13
#666 - Jared Meyering / @Jmeyering

11/25/2013 at 05:37PM

13
#667 - Charlene Tshos / @charlymul

12/05/2013 at 03:08PM

13
#668 - Jacob Niehus / @wilywampa

12/20/2013 at 07:21AM

13
#669 - Alessandro Lisander / @wuiimu

01/07/2014 at 09:13AM

13
#670 - Quota / @Quotad

01/13/2014 at 10:40AM

13
#671 - John Karlsson / @karlssonjohn

01/30/2014 at 03:20PM

13
#672 - Patrick Oscity / @der_padde

02/10/2014 at 01:44AM

13
#673 - barnabaguy / @barnabaguy

02/27/2014 at 09:36PM

13
#674 - asdf / @201679996

03/08/2014 at 11:52AM

13
#675 - Jean / @ygu0_0

03/09/2014 at 10:33PM

13
#676 - Thomas GUILLORY / @thomasguillory

03/11/2014 at 06:56AM

13
#677 - GimVolfer VimGolfer / @GimGol

03/13/2014 at 02:42AM

13
#678 - Brian Olpin / @bolpin

03/23/2014 at 06:27AM

13
#679 - Mick Garvey / @blarko

04/01/2014 at 12:19AM

13
#680 - ZorgroZ / @ZorgroZ

04/11/2014 at 10:28PM

13
#681 - Andreas Hagesjö / @Ankhagge

05/07/2014 at 10:54PM

13
#682 - Nolen Royalty / @NolenRoyalty

05/08/2014 at 08:09AM

13
#683 - Mark Inksa / @MInksaCS

05/10/2014 at 11:00PM

13
#684 - Hyper Bovine / @hyperbovine

05/12/2014 at 05:15PM

13
#685 - wizardwerdna / @wizardwerdna

05/16/2014 at 06:16AM

13
#686 - kwa / @kwa129

07/09/2014 at 04:22AM

13
#687 - Naoki Masuko / @nmasuko

07/11/2014 at 10:54PM

13
#688 - Michi Loro / @michiloro

07/16/2014 at 08:38AM

13
#689 - LC / @leeren

08/09/2014 at 08:02PM

13
#690 - AC / @quadface

08/23/2014 at 06:39PM