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 by @rampant_monkey:

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @wolever

1603 active golfers, 4847 entries

Solutions by @rampant_monkey:
12
#180 - Casey Robinson / @rampant_monkey

12/05/2012 at 08:55PM

13
#>762 - Casey Robinson / @rampant_monkey

12/05/2012 at 08:51PM

14
#>922 - Casey Robinson / @rampant_monkey

12/05/2012 at 08:48PM

16
#>1140 - Casey Robinson / @rampant_monkey

12/05/2012 at 08:07PM

16
#>1140 - Casey Robinson / @rampant_monkey

12/05/2012 at 08:47PM

17
#>1253 - Casey Robinson / @rampant_monkey

12/05/2012 at 08:05PM

18
#>1306 - Casey Robinson / @rampant_monkey

12/05/2012 at 07:33PM

19
#>1407 - Casey Robinson / @rampant_monkey

12/05/2012 at 07:32PM

24
#>1549 - Casey Robinson / @rampant_monkey

12/05/2012 at 07:31PM