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 @bishboria:

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

1625 active golfers, 4990 entries

Solutions by @bishboria:
12
#65 - Stuart Gale / @bishboria

01/02/2011 at 04:38PM

14
#>907 - Stuart Gale / @bishboria

01/02/2011 at 04:35PM

16
#>1143 - Stuart Gale / @bishboria

01/02/2011 at 04:34PM

21
#>1517 - Stuart Gale / @bishboria

12/29/2010 at 01:18PM

24
#>1571 - Stuart Gale / @bishboria

12/29/2010 at 01:17PM

25
#>1577 - Stuart Gale / @bishboria

12/29/2010 at 01:17PM

30
#>1594 - Stuart Gale / @bishboria

12/29/2010 at 01:15PM