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

1330 active golfers, 4091 entries

Leaderboard (lowest score wins):
17
#1051 - Aaron Kalin / @martinisoft

09/16/2011 at 01:03AM

17
#1052 - matthew / @mdespuits

02/03/2012 at 06:23AM

17
#1053 - ise0615 / @ise0615

05/04/2012 at 05:39PM

17
#1054 - Guillaume Ferrand / @thedigital

07/13/2012 at 03:57PM

17
#1055 - Viswanath Sivakumar / @viswanathgs

08/30/2012 at 10:36AM

17
#1056 - boobooopower / @boobooopower

02/06/2013 at 07:09PM

17
#1057 - George GZ Zakhour / @AlloGeorge

06/25/2013 at 11:30AM

17
#1058 - Jesse Fisher / @jessecfisher

08/23/2013 at 10:20PM

17
#1059 - Bradley M. Small / @BradleySmall

10/28/2013 at 02:04AM

17
#1060 - Hoz / @hzopak

10/28/2013 at 03:26PM

17
#1061 - David Tran / @everyzero

10/31/2013 at 03:57PM

17
#1062 - Brian Peiris / @brianpeiris

12/28/2013 at 05:44AM

17
#1063 - Jeremy Jisoy / @JeremyJisoy

02/27/2014 at 03:18PM

17
#1064 - TimWolla / @TimWolla

03/13/2014 at 10:30PM

17
#1065 - Grishkin / @Grishkin

04/06/2014 at 07:55PM

17
#1066 - Jay Phillips / @rocketman8473

06/23/2014 at 10:36PM

17
#1067 - id / @tunguska112

07/27/2014 at 09:50AM

17
#1068 - Patrick Pitoscia / @Patrick03960431

08/04/2014 at 03:59AM

17
#1069 - durcheinandr / @durcheinandr

01/03/2015 at 06:07PM

17
#1070 - Kristijan Husak / @kristijan_husak

02/02/2015 at 09:45PM

17
#1071 - vimgolf / @neovimp

03/04/2015 at 05:21PM

17
#1072 - Emmanuel Lund / @elund_az

09/18/2015 at 09:52PM

17
#1073 - Markus Bohl / @bohl_markus

02/26/2016 at 02:20PM

17
#1074 - Kento Kaneko / @kentokaneko

06/15/2016 at 03:55PM

17
#1075 - Doug / @AsnoGordo

08/12/2017 at 07:02PM

17
#1076 - Banner B. Schafer / @BannerBSchafer

07/29/2018 at 11:12PM

17
#1077 - Thiago Preischadt / @TPreischadt

07/11/2019 at 01:23AM

18
#1078 - Joe McCall / @joem86

12/29/2010 at 03:38AM

18
#1079 - Chris K. Engel / @m0rb

12/29/2010 at 04:37AM

18
#1080 - Scott Blomquist / @sblom

12/29/2010 at 07:18AM