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

1314 active golfers, 4058 entries

Leaderboard (lowest score wins):
13
#601 - Mark Scholtz / @markscholtz

02/07/2011 at 08:43PM

13
#602 - mightyfoo / @mightyfoo

05/25/2011 at 03:51PM

13
#603 - Øystein Walle / @oysteinwalle

07/06/2011 at 11:47PM

13
#604 - Jim Infield / @jinfield

07/20/2011 at 04:08AM

13
#605 - Gary Rennie / @TheGazler

08/03/2011 at 03:43PM

13
#606 - Christopher Erin / @MCNormalMode

09/16/2011 at 04:27AM

13
#607 - Martin Carlsson / @martincarlsson_

09/26/2011 at 09:19PM

13
#608 - vimja / @vimja666

11/02/2011 at 11:43PM

13
#609 - Jonathan Payne / @JonathanPayne4

11/03/2011 at 06:38PM

13
#610 - cheerfulstoic / @cheerfulstoic

12/21/2011 at 08:48PM

13
#611 - Burkhard Zimmermann / @BurkZimm

12/26/2011 at 04:03PM

13
#612 - Dj Vimgolf / @dj_vimgolf

12/30/2011 at 11:56PM

13
#613 - peter shih / @peter50216

01/06/2012 at 08:07AM

13
#614 - oliver mueller / @marcontwit

01/26/2012 at 05:56AM

13
#615 - Calvin Condon / @ccondon

02/02/2012 at 06:11AM

13
#616 - João Veiga / @jcsvveiga

02/13/2012 at 02:36PM

13
#617 - bburky / @bburky

02/24/2012 at 04:08AM

13
#618 - vansan / @VinceVansan

08/21/2012 at 10:15AM

13
#619 - Yi EungJun / @semtlnori

09/23/2012 at 10:46AM

13
#620 - Marcin Sza / @coot_

11/22/2012 at 07:28PM

13
#621 - Alexey / @kramar42

07/04/2013 at 03:51PM

13
#622 - Bradd Szonye / @bszonye

07/11/2013 at 07:50AM

13
#623 - Gwilym Kuiper / @gwilymk

07/11/2013 at 09:00PM

13
#624 - Aaron Bieber / @aaronbieber

07/15/2013 at 09:48PM

13
#625 - Kelly Steensma / @kellystee

07/18/2013 at 01:17AM

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

07/19/2013 at 12:05PM

13
#627 - Justin Le / @mstk

07/24/2013 at 07:57AM

13
#628 - cj / @cj01101

08/04/2013 at 07:14PM

13
#629 - Peter Johannson / @PeterJohannson

08/04/2013 at 09:09PM

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

08/23/2013 at 06:34PM