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

1330 active golfers, 4091 entries

Leaderboard (lowest score wins):
13
#631 - Aaron Bieber / @aaronbieber

07/15/2013 at 09:48PM

13
#632 - Kelly Steensma / @kellystee

07/18/2013 at 01:17AM

13
#633 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

07/19/2013 at 12:05PM

13
#634 - Justin Le / @mstk

07/24/2013 at 07:57AM

13
#635 - cj / @cj01101

08/04/2013 at 07:14PM

13
#636 - Peter Johannson / @PeterJohannson

08/04/2013 at 09:09PM

13
#637 - Rémi Jézéquel / @Remjez

08/23/2013 at 06:34PM

13
#638 - Yu / @Yuyah1

09/24/2013 at 07:29AM

13
#639 - Dimitar Dimitrov / @kurkale6ka

10/18/2013 at 03:57PM

13
#640 - thasso / @thasso23

10/27/2013 at 06:33PM

13
#641 - Fnord Everywhere / @FnordE

10/30/2013 at 03:10PM

13
#642 - pyrhho / @pyrhho

11/08/2013 at 06:34PM

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

11/12/2013 at 11:58PM

13
#644 - Jared Meyering / @Jmeyering

11/25/2013 at 05:37PM

13
#645 - Charlene Tshos / @charlymul

12/05/2013 at 03:08PM

13
#646 - Jacob Niehus / @wilywampa

12/20/2013 at 07:21AM

13
#647 - Alessandro Lisander / @wuiimu

01/07/2014 at 09:13AM

13
#648 - Quota / @Quotad

01/13/2014 at 10:40AM

13
#649 - John Karlsson / @karlssonjohn

01/30/2014 at 03:20PM

13
#650 - Patrick Oscity / @der_padde

02/10/2014 at 01:44AM

13
#651 - barnabaguy / @barnabaguy

02/27/2014 at 09:36PM

13
#652 - asdf / @201679996

03/08/2014 at 11:52AM

13
#653 - Jean / @ygu0_0

03/09/2014 at 10:33PM

13
#654 - Thomas GUILLORY / @thomasguillory

03/11/2014 at 06:56AM

13
#655 - GimVolfer VimGolfer / @GimGol

03/13/2014 at 02:42AM

13
#656 - Brian Olpin / @bolpin

03/23/2014 at 06:27AM

13
#657 - Mick Garvey / @blarko

04/01/2014 at 12:19AM

13
#658 - ZorgroZ / @ZorgroZ

04/11/2014 at 10:28PM

13
#659 - Andreas Hagesjö / @Ankhagge

05/07/2014 at 10:54PM

13
#660 - Nolen Royalty / @NolenRoyalty

05/08/2014 at 08:09AM