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

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

1624 active golfers, 4989 entries

Solutions by @sjdrodge:
12
#245 - Stephen Drodge / @sjdrodge

09/24/2013 at 02:44AM

12
#>299 - Stephen Drodge / @sjdrodge

03/14/2014 at 10:12PM

13
#>786 - Stephen Drodge / @sjdrodge

09/24/2013 at 02:43AM

13
#>804 - Stephen Drodge / @sjdrodge

03/14/2014 at 10:11PM

14
#>956 - Stephen Drodge / @sjdrodge

09/24/2013 at 02:40AM

15
#>1099 - Stephen Drodge / @sjdrodge

09/24/2013 at 02:39AM

16
#>1169 - Stephen Drodge / @sjdrodge

09/24/2013 at 02:37AM