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):
14
#901 - nvb46c74f8ih / @nvb46c74f8ih

05/18/2019 at 07:23AM

14
#902 - Nick Yeow / @nickyeow

05/22/2019 at 01:59PM

14
#903 - albalitz / @_albalitz

06/06/2019 at 11:17AM

14
#904 - cinder 🔥 / @cyndrdev

06/27/2019 at 06:30PM

14
#905 - Березницкий Вадим / @vad1mster

07/09/2019 at 11:35AM

14
#906 - Ivo Blöchliger / @aigledesalpes

08/04/2019 at 08:34PM

14
#907 - お-せ-よ- / @OhSayYo

08/26/2019 at 10:43PM

14
#908 - José / @AngelGaldamez

08/28/2019 at 03:30AM

14
#909 - ciela / @lededex

08/28/2019 at 07:04PM

14
#910 - Hans Lidiki / @HLidiki

09/07/2019 at 06:04PM

14
#911 - Ariel Miculas / @ArielMiculas

09/19/2019 at 03:24PM

14
#912 - GrimmT / @GrimmT10

11/02/2019 at 09:17AM

14
#913 - Tokos Apos / @AposTokosapos

11/04/2019 at 12:26PM

15
#914 - Tom Adams / @holizz

12/29/2010 at 01:31AM

15
#915 - Fictorial / @fictorial

12/29/2010 at 06:13AM

15
#916 - Gautier / @Gowtier

12/29/2010 at 12:38PM

15
#917 - Lee Jarvis / @lee_jarvis

12/29/2010 at 03:52PM

15
#918 - Rajit Singh / @rajitbsingh

12/29/2010 at 11:25PM

15
#919 - uuu / @uu59

12/30/2010 at 01:50AM

15
#920 - Ron Gejman / @rongejman

12/30/2010 at 06:48AM

15
#921 - Roland Crosby / @roooooland

12/30/2010 at 08:55AM

15
#922 - Marc Simonin / @TheGnorf

12/30/2010 at 11:40AM

15
#923 - garygordon / @garygordon

12/31/2010 at 12:49AM

15
#924 - Eivind Jahren / @HaskellElephant

01/19/2011 at 12:52PM

15
#925 - captain_morgan / @captain_morgan

04/21/2011 at 10:23PM

15
#926 - Rolf K. / @mindleftbody

06/17/2011 at 01:08PM

15
#927 - James / @defactojames

10/18/2012 at 01:45AM

15
#928 - Nicolas Friedli / @NicolasFriedli

10/29/2012 at 05:17PM

15
#929 - curist / @curist

07/09/2013 at 02:05AM

15
#930 - Kevin McGladdery / @run_kmc

07/31/2013 at 04:56AM