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

1287 active golfers, 3963 entries

Leaderboard (lowest score wins):
12
#421 - Jon Krause / @jkrause314

01/30/2016 at 10:48PM

12
#422 - Aleksey Zhidkov / @AlexeyZhidkov

02/03/2016 at 04:59AM

12
#423 - Michael Buckley / @apolatg

02/13/2016 at 09:40PM

12
#424 - Roberto Carraretto / @robcarraretto

02/16/2016 at 11:45PM

12
#425 - ben kavanagh / @bkava

02/23/2016 at 04:26AM

12
#426 - Kostas / @blackraven_13

02/23/2016 at 08:51PM

12
#427 - Kevin Gisi / @cheerskevin

02/24/2016 at 08:15AM

12
#428 - Jaron Hamlik / @jdhamlik

02/27/2016 at 04:17AM

12
#429 - John Smith / @literacyisgood

03/01/2016 at 08:38PM

12
#430 - Thijs van den Anker / @thijsvdanker

03/15/2016 at 06:59PM

12
#431 - Fraser Cormack / @frasercrmck

03/23/2016 at 06:37PM

12
#432 - Dinesh Bhosale / @MrDineshBhosale

04/01/2016 at 02:39PM

12
#433 - Saki Gw / @Sakigw

04/09/2016 at 04:11PM

12
#434 - ramandeep randhawa / @rsrandhawa

04/10/2016 at 10:23PM

12
#435 - Alex Ch / @_AlexCh_

04/13/2016 at 11:57PM

12
#436 - John / @gonads31

04/27/2016 at 05:54AM

12
#437 - tPenguinLTG / @tpenguinltg

04/28/2016 at 12:55PM

12
#438 - apollolune / @apollolune

05/02/2016 at 12:14PM

12
#439 - John Goes / @johnwgoes

05/09/2016 at 02:04AM

12
#440 - Ben Hill / @KaizenSoze70

05/11/2016 at 08:34PM

12
#441 - John Doe Sr. / @johndoe67890543

05/23/2016 at 11:23PM

12
#442 - Andres Araya / @arayaandresfco

05/24/2016 at 04:02AM

12
#443 - tgmeng / @lazy_fabric

06/10/2016 at 03:57PM

12
#444 - jan sos / @jann6373

06/13/2016 at 04:00PM

12
#445 - Ikypiky / @nerdbeereis

06/16/2016 at 12:08AM

12
#446 - Yudi Matsuzake / @yudimatsuzake

06/22/2016 at 03:45PM

12
#447 - Ameen P / @Ameen_P1

06/23/2016 at 04:57PM

12
#448 - barak happy / @barakhaviv

06/29/2016 at 01:55PM

12
#449 - Timothy Caleb Nordlo / @tnordloh

06/30/2016 at 04:00AM

12
#450 - Dan Madden / @guthran

07/20/2016 at 07:32PM