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

1267 active golfers, 3898 entries

Leaderboard (lowest score wins):
12
#541 - steve N ӾlvЮ / @xlvio

11/15/2018 at 07:21PM

12
#542 - name / @name65894813

11/18/2018 at 08:50PM

12
#543 - faisal / @faisalhackshah

11/25/2018 at 03:42AM

12
#544 - timonegk / @timonegk

11/25/2018 at 07:55PM

12
#545 - Mihai / @mihaicristiant

12/04/2018 at 09:20AM

12
#546 - Jordan / @RiotChomey

12/19/2018 at 01:18AM

12
#547 - Alex Mitchell / @alexthemitchell

12/19/2018 at 08:55PM

12
#548 - guxbug / @guxbug1

12/21/2018 at 09:00AM

12
#549 - Bart Kleijngeld / @BartKleijngeld

12/24/2018 at 08:51PM

12
#550 - TimMcGuire / @mcguire

12/31/2018 at 10:34PM

12
#551 - Lorenzo Swank / @lswank

01/05/2019 at 04:56PM

12
#552 - Visualizing Medicine / @VisualizeMed

01/12/2019 at 07:38PM

12
#553 - Diogo Felix / @onlurking

01/19/2019 at 05:38AM

12
#554 - amal / @cdsudama

02/02/2019 at 02:35PM

12
#555 - Henrique Malheiro / @rike09

02/07/2019 at 02:06PM

12
#556 - Mateen Ulhaq / @sicariusnoctis

02/13/2019 at 05:44AM

12
#557 - Wei Wen / @goweiwen

02/14/2019 at 07:44PM

13
#558 - Soliman Sylvain / @sylvain_soliman

12/29/2010 at 12:54PM

13
#559 - Mariano Guerra / @marianoguerra

12/29/2010 at 01:22PM

13
#560 - arungn / @arungn

12/29/2010 at 07:02PM

13
#561 - Timothy DeBaillie / @timdebaillie

12/29/2010 at 09:33PM

13
#562 - Aurélien Delahaye / @alkove

01/02/2011 at 01:26AM

13
#563 - enzbang / @enzbang

01/08/2011 at 09:15PM

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

01/15/2011 at 05:20PM

13
#565 - Strahinja Popovic / @stralep

01/16/2011 at 10:11AM

13
#566 - Kristof Jozsa / @kjozsa

01/19/2011 at 02:42PM

13
#567 - David Pflug / @dpflug

02/04/2011 at 06:48PM

13
#568 - Mark Scholtz / @markscholtz

02/07/2011 at 08:43PM

13
#569 - mightyfoo / @mightyfoo

05/25/2011 at 03:51PM

13
#570 - Øystein Walle / @oysteinwalle

07/06/2011 at 11:47PM