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

1348 active golfers, 4148 entries

Leaderboard (lowest score wins):
12
#271 - Joshua Appelman / @JoshuaAppelman

12/21/2013 at 08:30PM

12
#272 - pikaren / @REALpikaren

12/22/2013 at 08:53AM

12
#273 - John Gray Cole / @johngraycole

12/22/2013 at 09:45PM

12
#274 - Casper Christensen / @Casper__C

12/22/2013 at 11:50PM

12
#275 - Paul Liu / @automorphism

12/23/2013 at 12:41PM

12
#276 - Herrington Darkholme / @nonamesheep

12/27/2013 at 10:33AM

12
#277 - Alex / @ImAlexhai

01/08/2014 at 08:48PM

12
#278 - Dmitry Astapenko / @dmitree

01/11/2014 at 03:30PM

12
#279 - Mark Janssen / @MPCtje

01/15/2014 at 03:45PM

12
#280 - Johan Berg / @_berg85

01/17/2014 at 03:37PM

12
#281 - Jon Evans / @burmasauce

01/29/2014 at 10:15AM

12
#282 - João Paiva / @jgpaiva

01/29/2014 at 07:44PM

12
#283 - Luke Worth / @povman

02/01/2014 at 12:30AM

12
#284 - Olivier Parent / @oliparcol

02/02/2014 at 03:32PM

12
#285 - ▚▞▜▛▟▓▛▜░▙▟▒▋▌▊ / @null_radix

02/03/2014 at 11:01PM

12
#286 - mattsalacain / @mattsalacain

02/04/2014 at 05:00AM

12
#287 - Jae Won Kim / @jaewone

02/05/2014 at 01:06AM

12
#288 - Strabs / @artistavenue

02/07/2014 at 02:29PM

12
#289 - Nunya Bizness / @NunyaBi85490244

02/09/2014 at 05:16AM

12
#290 - Joonas Pihlajamaa / @jokkebk

02/11/2014 at 07:26AM

12
#291 - Ben Lambeth / @azy2_ben

02/13/2014 at 01:27PM

12
#292 - Xelrifos / @Xelrifos

02/18/2014 at 07:54PM

12
#293 - Mina Naguib / @minaguib

02/22/2014 at 02:20AM

12
#294 - Dheeraj Sayala / @dheerosaur

02/25/2014 at 01:32PM

12
#295 - Marchand Paul-Valère / @pvmarch

02/27/2014 at 08:46AM

12
#296 - Yiyang Chen / @yiyangc91

03/04/2014 at 11:31AM

12
#297 - Huang Yu / @trave7er

03/05/2014 at 02:46AM

12
#298 - Milind Ganjoo / @mganjoo

03/06/2014 at 03:40AM

12
#299 - Konrad / @zichul

03/08/2014 at 06:05PM

12
#300 - RB / @powerage88

03/15/2014 at 12:45AM