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
#631 - cheerfulstoic / @cheerfulstoic

12/21/2011 at 08:48PM

13
#632 - Burkhard Zimmermann / @BurkZimm

12/26/2011 at 04:03PM

13
#633 - Dj Vimgolf / @dj_vimgolf

12/30/2011 at 11:56PM

13
#634 - peter shih / @peter50216

01/06/2012 at 08:07AM

13
#635 - oliver mueller / @marcontwit

01/26/2012 at 05:56AM

13
#636 - Calvin Condon / @ccondon

02/02/2012 at 06:11AM

13
#637 - João Veiga / @jcsvveiga

02/13/2012 at 02:36PM

13
#638 - bburky / @bburky

02/24/2012 at 04:08AM

13
#639 - vansan / @VinceVansan

08/21/2012 at 10:15AM

13
#640 - Yi EungJun / @semtlnori

09/23/2012 at 10:46AM

13
#641 - Marcin Sza / @coot_

11/22/2012 at 07:28PM

13
#642 - Alexey / @kramar42

07/04/2013 at 03:51PM

13
#643 - Bradd Szonye / @bszonye

07/11/2013 at 07:50AM

13
#644 - Gwilym Kuiper / @gwilymk

07/11/2013 at 09:00PM

13
#645 - Aaron Bieber / @aaronbieber

07/15/2013 at 09:48PM

13
#646 - Kelly Steensma / @kellystee

07/18/2013 at 01:17AM

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

07/19/2013 at 12:05PM

13
#648 - Justin Le / @mstk

07/24/2013 at 07:57AM

13
#649 - cj / @cj01101

08/04/2013 at 07:14PM

13
#650 - Peter Johannson / @PeterJohannson

08/04/2013 at 09:09PM

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

08/23/2013 at 06:34PM

13
#652 - Yu / @Yuyah1

09/24/2013 at 07:29AM

13
#653 - Dimitar Dimitrov / @kurkale6ka

10/18/2013 at 03:57PM

13
#654 - thasso / @thasso23

10/27/2013 at 06:33PM

13
#655 - Fnord Everywhere / @FnordE

10/30/2013 at 03:10PM

13
#656 - pyrhho / @pyrhho

11/08/2013 at 06:34PM

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

11/12/2013 at 11:58PM

13
#658 - Jared Meyering / @Jmeyering

11/25/2013 at 05:37PM

13
#659 - Charlene Tshos / @charlymul

12/05/2013 at 03:08PM

13
#660 - Jacob Niehus / @wilywampa

12/20/2013 at 07:21AM