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

1369 active golfers, 4210 entries

Leaderboard (lowest score wins):
14
#751 - johnny / @johnnychm

12/29/2010 at 01:28PM

14
#752 - Simon Edwardsson / @_SimEdw_

12/29/2010 at 04:10PM

14
#753 - George Hampton / @gdhamp

12/29/2010 at 05:24PM

14
#754 - David Rivers / @davidmrivers

12/29/2010 at 07:59PM

14
#755 - PA Parent / @paparent

12/30/2010 at 01:03AM

14
#756 - thelaney / @thelaneythelazy

12/30/2010 at 04:20AM

14
#757 - krazylegz / @krazylegz

12/30/2010 at 05:04AM

14
#758 - Andy Brett / @andrewpbrett

12/30/2010 at 08:32AM

14
#759 - Behnam Esfahbod / @zwnj

12/30/2010 at 12:59PM

14
#760 - Stephen Celis / @stephencelis

12/30/2010 at 02:43PM

14
#761 - Jim Garvin / @coderifous

12/30/2010 at 02:57PM

14
#762 - Akira Matsuda / @a_matsuda

12/30/2010 at 03:44PM

14
#763 - bmaddy / @bmaddy

12/30/2010 at 07:20PM

14
#764 - Przemysław Pawełczyk / @przemoc86

12/30/2010 at 08:30PM

14
#765 - Andrei Chirila / @andrei_chirila

12/30/2010 at 10:52PM

14
#766 - Will Hardy / @whrde

12/30/2010 at 11:34PM

14
#767 - Mikel Ward / @mikelward

12/31/2010 at 06:00AM

14
#768 - Jordan Owens / @signalhandler

12/31/2010 at 07:31PM

14
#769 - larsd / @larsd

12/31/2010 at 09:37PM

14
#770 - Richard Sanchez / @vimlearner

01/01/2011 at 06:28AM

14
#771 - Cristi Balan / @evilchelu

01/01/2011 at 06:59AM

14
#772 - El Jacko / @mrjackinc

01/03/2011 at 02:58AM

14
#773 - Pete O'Grady / @peteog

01/04/2011 at 10:42AM

14
#774 - Clive Evans / @swish_bob

01/17/2011 at 11:30PM

14
#775 - Vladimir Parfinenko / @cypok

01/19/2011 at 05:26AM

14
#776 - Jouko Karvonen / @joukokar

02/03/2011 at 04:33AM

14
#777 - Levon Lloyd / @levonlloyd

02/04/2011 at 05:37PM

14
#778 - Wade Simmons / @wadey

03/26/2011 at 04:59PM

14
#779 - Tim Andersson / @Boerworz

04/19/2011 at 10:08PM

14
#780 - erktime / @erktime

09/16/2011 at 01:07AM