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

1368 active golfers, 4206 entries

Leaderboard (lowest score wins):
16
#991 - Woojung Kim 김우중 / @_kimwz

07/12/2013 at 04:22AM

16
#992 - Timothée Gauthier / @zmf_tim

07/12/2013 at 04:32PM

16
#993 - Rick Button / @rickbutton

07/24/2013 at 05:53AM

16
#994 - Bart of Denver / @bartofdenver

08/12/2013 at 02:05PM

16
#995 - this one / @thisone9

08/20/2013 at 03:46PM

16
#996 - Oliver Christ / @0liverChrist

09/16/2013 at 10:39PM

16
#997 - Fernando Axel Ellis / @Axel_Ellis

09/17/2013 at 02:50PM

16
#998 - brett / @brettyukich

09/19/2013 at 10:39AM

16
#999 - nona urbiz / @nospampleasemam

09/28/2013 at 07:17AM

16
#1000 - Sami Niiranen / @saminiir

10/13/2013 at 10:43AM

16
#1001 - Erik Broman / @er1kb

11/13/2013 at 08:22PM

16
#1002 - - / @swi93

12/06/2013 at 04:27AM

16
#1003 - Ian Laird / @irlaird

12/16/2013 at 11:28PM

16
#1004 - Geir Helleloid / @geirhelleloid

12/17/2013 at 11:22PM

16
#1005 - adamblank / @adamblank

12/20/2013 at 07:23PM

16
#1006 - Greg Jebb / @jebbster

01/06/2014 at 08:25PM

16
#1007 - Andreas Källberg / @Anka213

01/17/2014 at 04:16AM

16
#1008 - jimauthors / @jimauthors

02/07/2014 at 02:33AM

16
#1009 - Amir Kremer / @AmirKremer

02/09/2014 at 01:43PM

16
#1010 - Jean-PhilippeBurelle / @jpburelle

03/02/2014 at 04:42AM

16
#1011 - Kamil Krzyżanowski / @kamnxt

03/14/2014 at 05:14PM

16
#1012 - Krillian / @Krillian3

03/28/2014 at 02:23PM

16
#1013 - Kane Wallmann / @ToCsIcK

04/27/2014 at 11:07AM

16
#1014 - Solar Powered Robot / @moskrin

04/30/2014 at 06:29PM

16
#1015 - Rob Glew / @RealGlew

06/05/2014 at 07:38PM

16
#1016 - Boyang Zhu / @boyangzhu1

06/05/2014 at 07:38PM

16
#1017 - compiled wrong / @compiledwrong

06/23/2014 at 12:28AM

16
#1018 - Pierre Hanselmann / @Zophar78

07/04/2014 at 08:16PM

16
#1019 - Cengiz Can / @cengizIO

07/25/2014 at 07:22AM

16
#1020 - daveseibert / @daveseibert

08/02/2014 at 03:40AM