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

1287 active golfers, 3963 entries

Leaderboard (lowest score wins):
13
#601 - Alexey / @kramar42

07/04/2013 at 03:51PM

13
#602 - Bradd Szonye / @bszonye

07/11/2013 at 07:50AM

13
#603 - Gwilym Kuiper / @gwilymk

07/11/2013 at 09:00PM

13
#604 - Aaron Bieber / @aaronbieber

07/15/2013 at 09:48PM

13
#605 - Kelly Steensma / @kellystee

07/18/2013 at 01:17AM

13
#606 - Dr. Rev. J. "Burn For Heat" Kirchartz / @JKirchartz

07/19/2013 at 12:05PM

13
#607 - Justin Le / @mstk

07/24/2013 at 07:57AM

13
#608 - cj / @cj01101

08/04/2013 at 07:14PM

13
#609 - Peter Johannson / @PeterJohannson

08/04/2013 at 09:09PM

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

08/23/2013 at 06:34PM

13
#611 - Yu / @Yuyah1

09/24/2013 at 07:29AM

13
#612 - Dimitar Dimitrov / @kurkale6ka

10/18/2013 at 03:57PM

13
#613 - thasso / @thasso23

10/27/2013 at 06:33PM

13
#614 - Fnord Everywhere / @FnordE

10/30/2013 at 03:10PM

13
#615 - pyrhho / @pyrhho

11/08/2013 at 06:34PM

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

11/12/2013 at 11:58PM

13
#617 - Jared Meyering / @Jmeyering

11/25/2013 at 05:37PM

13
#618 - Charlene Tshos / @charlymul

12/05/2013 at 03:08PM

13
#619 - Jacob Niehus / @wilywampa

12/20/2013 at 07:21AM

13
#620 - Alessandro Lisander / @wuiimu

01/07/2014 at 09:13AM

13
#621 - Quota / @Quotad

01/13/2014 at 10:40AM

13
#622 - John Karlsson / @karlssonjohn

01/30/2014 at 03:20PM

13
#623 - Patrick Oscity / @der_padde

02/10/2014 at 01:44AM

13
#624 - barnabaguy / @barnabaguy

02/27/2014 at 09:36PM

13
#625 - asdf / @201679996

03/08/2014 at 11:52AM

13
#626 - Jean / @ygu0_0

03/09/2014 at 10:33PM

13
#627 - Thomas GUILLORY / @thomasguillory

03/11/2014 at 06:56AM

13
#628 - GimVolfer VimGolfer / @GimGol

03/13/2014 at 02:42AM

13
#629 - Brian Olpin / @bolpin

03/23/2014 at 06:27AM

13
#630 - Mick Garvey / @blarko

04/01/2014 at 12:19AM