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

1314 active golfers, 4058 entries

Leaderboard (lowest score wins):
12
#571 - お薬手帳 / @iW4Wz6PpCiqyGqH

04/26/2019 at 06:07AM

12
#572 - Gitsnik / @dracyrys

04/26/2019 at 12:28PM

12
#573 - Grant / @grant_7788

04/30/2019 at 02:24PM

12
#574 - ow / @ow34480012

05/01/2019 at 09:23PM

12
#575 - Sherab Giovannini / @shaddycls

05/03/2019 at 10:02PM

12
#576 - Robin Arys / @zedutchgandalf

05/08/2019 at 04:04PM

12
#577 - Felipe Monteiro / @monteiro_fp

05/08/2019 at 06:21PM

12
#578 - Arno / @arnoxmp

05/09/2019 at 07:37AM

12
#579 - ささ / @nick11033

05/16/2019 at 11:09AM

12
#580 - johnLate / @johnLate

05/17/2019 at 11:39AM

12
#581 - deurzen / @devrzen

06/06/2019 at 01:42PM

12
#582 - Graeme Smith / @InstaGraeme

06/07/2019 at 01:55PM

12
#583 - Alex Yu / @sixianyu

06/07/2019 at 11:38PM

12
#584 - BunFluffman / @BFluffman

06/08/2019 at 01:00PM

12
#585 - Дима / @dimkino

06/09/2019 at 11:55AM

12
#586 - Paul Draghicescu / @pdragy

06/10/2019 at 07:59PM

12
#587 - たぬぽん / @eJYwMbymauWKF4B

06/11/2019 at 03:49PM

12
#588 - Magnus Bjuvensjö / @mbjuvensjo

06/12/2019 at 09:49PM

12
#589 - Erik Lindeborg / @ErikLindeborg

06/16/2019 at 11:49AM

12
#590 - majo senf / @majo_senf

06/17/2019 at 12:05PM

13
#591 - Soliman Sylvain / @sylvain_soliman

12/29/2010 at 12:54PM

13
#592 - Mariano Guerra / @marianoguerra

12/29/2010 at 01:22PM

13
#593 - arungn / @arungn

12/29/2010 at 07:02PM

13
#594 - Timothy DeBaillie / @timdebaillie

12/29/2010 at 09:33PM

13
#595 - Aurélien Delahaye / @alkove

01/02/2011 at 01:26AM

13
#596 - enzbang / @enzbang

01/08/2011 at 09:15PM

13
#597 - h_east (トロッコ6個) / @h_east

01/15/2011 at 05:20PM

13
#598 - Strahinja Popovic / @stralep

01/16/2011 at 10:11AM

13
#599 - Kristof Jozsa / @kjozsa

01/19/2011 at 02:42PM

13
#600 - David Pflug / @dpflug

02/04/2011 at 06:48PM