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

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

1585 active golfers, 4792 entries

Solutions by @Daniel00288663:
12
#480 - Daniel / @Daniel00288663

03/21/2017 at 12:26PM

13
#>825 - Daniel / @Daniel00288663

03/21/2017 at 12:24PM

14
#>994 - Daniel / @Daniel00288663

03/21/2017 at 12:23PM

15
#>1090 - Daniel / @Daniel00288663

03/21/2017 at 12:20PM

16
#>1183 - Daniel / @Daniel00288663

03/21/2017 at 12:21PM

21
#>1493 - Daniel / @Daniel00288663

03/21/2017 at 12:17PM