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

1267 active golfers, 3898 entries

Leaderboard (lowest score wins):
12
#151 - funkattack / @funkattack

02/09/2012 at 04:43PM

12
#152 - Vasil Sakarov / @vsakarov

02/17/2012 at 08:34PM

12
#153 - sankarj / @sankarj

02/19/2012 at 04:11PM

12
#154 - 無ん垢の叫び / @john_ababa

02/21/2012 at 04:04PM

12
#155 - Michał Wróbel / @sparrovv_

03/13/2012 at 04:23PM

12
#156 - Analog / @analogp1xel

03/18/2012 at 08:17PM

12
#157 - drupalovereasy / @drupalovereasy

04/15/2012 at 01:45PM

12
#158 - Pawel Obrok / @mrYapee

04/25/2012 at 07:57PM

12
#159 - Rod Knowlton / @codelahoma

05/27/2012 at 01:57AM

12
#160 - Urtica dioica / @udioica

05/27/2012 at 12:31PM

12
#161 - Benson Kim / @BensonRLA

06/06/2012 at 10:43AM

12
#162 - Chris Brown / @engineercyb

07/13/2012 at 02:06PM

12
#163 - Son of Bongo / @bpcode

08/01/2012 at 11:26AM

12
#164 - Kerson Hsiao / @KersonHsiao

08/02/2012 at 05:58AM

12
#165 - James Davis / @tripvg

08/03/2012 at 10:05PM

12
#166 - Reed Riley / @ReedRile

08/14/2012 at 12:03AM

12
#167 - Charles Gordon / @liberalbias

08/25/2012 at 11:51PM

12
#168 - tmr / @tmr314

09/05/2012 at 05:24PM

12
#169 - Conner McDaniel / @connermcd

09/18/2012 at 05:14PM

12
#170 - robin hafen / @rohafen

09/28/2012 at 02:31PM

12
#171 - Victor Ramirez / @virako

09/30/2012 at 08:47PM

12
#172 - Vim rocks / @vimrocks

10/06/2012 at 10:41PM

12
#173 - Chris LeBlanc / @cleblanc87

11/02/2012 at 03:04PM

12
#174 - Underhill Labs / @underhilllabs

11/06/2012 at 02:26AM

12
#175 - Tom Cammann / @tea_sea

11/10/2012 at 06:12PM

12
#176 - Lieven Keersmaekers / @LievenKeersmaek

11/24/2012 at 02:44PM

12
#177 - mhb / @mhbvim

11/26/2012 at 10:35AM

12
#178 - Adelar S. Queiróz / @adelarsq

11/27/2012 at 11:25PM

12
#179 - Tamás Kárándi / @tkarandi

12/02/2012 at 10:03PM

12
#180 - Casey Robinson / @rampant_monkey

12/05/2012 at 08:55PM