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

1369 active golfers, 4210 entries

Leaderboard (lowest score wins):
12
#241 - Rikin Patel / @rikin_patel

08/31/2013 at 11:19AM

12
#242 - Bunwut Tson / @NbTson

08/31/2013 at 03:28PM

12
#243 - isayoldchap / @isayoldchap

09/04/2013 at 02:45AM

12
#244 - retired account / @retired10072015

09/22/2013 at 04:32PM

12
#245 - Stephen Drodge / @sjdrodge

09/24/2013 at 02:44AM

12
#246 - engy / @engydmw

09/27/2013 at 10:40PM

12
#247 - hiding / @I_haveno_name

10/01/2013 at 06:25AM

12
#248 - aRkadeFR / @aRkadeFR

10/04/2013 at 09:27PM

12
#249 - Joakim / @golfjoakim

10/12/2013 at 10:48AM

12
#250 - Chris Ford / @ctford

10/20/2013 at 08:17AM

12
#251 - foo / @foo88832727

10/20/2013 at 09:48AM

12
#252 - StarkHalo / @hellektor

10/21/2013 at 11:00PM

12
#253 - Brian Skarda / @BrianSkarda

10/22/2013 at 06:10PM

12
#254 - Paul Federspiel / @parobalth

10/23/2013 at 09:49PM

12
#255 - bunnies president / @bunnies4p

10/25/2013 at 07:24PM

12
#256 - Tzipan / @Tzipan

10/27/2013 at 01:21PM

12
#257 - US Dollar Price / @USDollarPrice

11/04/2013 at 03:17AM

12
#258 - Nathan Wallace / @nathanmwallace

11/05/2013 at 09:31PM

12
#259 - Jonathan Potter / @nTypeRed

11/11/2013 at 09:11PM

12
#260 - David Heath / @DavidHeath16

11/11/2013 at 11:14PM

12
#261 - Alfred Singlestone / @ASinglestone

11/15/2013 at 08:37PM

12
#262 - I / @ForgetIt17

11/23/2013 at 12:42PM

12
#263 - Khromenko Andrey / @ttydragon

11/23/2013 at 05:09PM

12
#264 - sandlion / @sandlion

11/23/2013 at 06:19PM

12
#265 - John Braxler / @braxler

11/26/2013 at 11:33PM

12
#266 - Brett Cassette / @brettcassette

12/02/2013 at 01:50AM

12
#267 - Larry Boltovskoi / @larrybolt

12/08/2013 at 02:33PM

12
#268 - Zach Kemp / @zvksf

12/13/2013 at 05:52PM

12
#269 - Andrew O'Neill / @AndroidOatmeal

12/19/2013 at 05:56PM

12
#270 - Julien Lerouge / @rackamx

12/20/2013 at 11:08PM