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):
14
#751 - Clive Evans / @swish_bob

01/17/2011 at 11:30PM

14
#752 - Vladimir Parfinenko / @cypok

01/19/2011 at 05:26AM

14
#753 - Jouko Karvonen / @joukokar

02/03/2011 at 04:33AM

14
#754 - Levon Lloyd / @levonlloyd

02/04/2011 at 05:37PM

14
#755 - Wade Simmons / @wadey

03/26/2011 at 04:59PM

14
#756 - Tim Andersson / @Boerworz

04/19/2011 at 10:08PM

14
#757 - erktime / @erktime

09/16/2011 at 01:07AM

14
#758 - Brian Dunn / @higgaion

09/16/2011 at 01:18AM

14
#759 - Derrick Spell / @dcsesq

09/28/2011 at 05:13AM

14
#760 - Infertux / @Infertux

11/04/2011 at 01:51PM

14
#761 - William Dunand / @wdunand

12/05/2011 at 08:26AM

14
#762 - Brian Tse / @dapangro

12/15/2011 at 03:25AM

14
#763 - fred6 / @_fred6

12/19/2011 at 12:18AM

14
#764 - Matthew Cupps / @matthewcupps

12/21/2011 at 09:52PM

14
#765 - suhair hassan / @suhairhassan

12/27/2011 at 11:39AM

14
#766 - Rik Lomas / @riklomas

01/01/2012 at 12:13AM

14
#767 - ShikChen / @ShikChen

01/06/2012 at 05:05AM

14
#768 - aph / @aph777

02/03/2012 at 11:44AM

14
#769 - Christopher Brew / @Seph1rothVII

02/06/2012 at 06:12PM

14
#770 - ɟpsq / @bsdf

02/08/2012 at 08:03PM

14
#771 - Matthew Lewinski / @lewinski

02/25/2012 at 05:00AM

14
#772 - Kristopher Urie / @kristopherurie

02/28/2012 at 05:13AM

14
#773 - Sean Nilan / @seanmulan

04/12/2012 at 11:56PM

14
#774 - Mikael Ohlsson / @Mikael0hlsson

04/24/2012 at 06:03PM

14
#775 - Cat Dragon / @catragon

05/04/2012 at 08:09AM

14
#776 - Tomas Frostensson / @frostensson

05/22/2012 at 02:42PM

14
#777 - Tyler J. Kuhn / @blackwatertepes

08/27/2012 at 07:18AM

14
#778 - Arto Vuori / @dhpe

08/29/2012 at 10:07PM

14
#779 - yohe / @yohe_0616

12/23/2012 at 08:51AM

14
#780 - Alex Hammel / @AlexJHammel

12/23/2012 at 07:38PM