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

1332 active golfers, 4096 entries

Leaderboard (lowest score wins):
14
#871 - PJ Frazer / @pj_frazer

11/23/2018 at 09:18PM

14
#872 - Anant Mishra / @anantanni22

11/30/2018 at 09:40AM

14
#873 - wrglprmft / @wrglprmft

01/19/2019 at 10:19PM

14
#874 - churaki / @churaki

01/26/2019 at 04:33AM

14
#875 - gtgtgt02 / @gtgtgt02

03/30/2019 at 08:51PM

14
#876 - Duke Du / @DukeDu2

04/05/2019 at 02:01AM

14
#877 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 08:58AM

14
#878 - Tony Buranzon / @therealTbunz

04/24/2019 at 05:41PM

14
#879 - Denton Phosavanh / @DPhosavanh

05/18/2019 at 07:23AM

14
#880 - Nick Yeow / @nickyeow

05/22/2019 at 01:59PM

14
#881 - albalitz / @_albalitz

06/06/2019 at 11:17AM

14
#882 - cinder 🔥 / @cyndrdev

06/27/2019 at 06:30PM

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

07/09/2019 at 11:35AM

15
#884 - Tom Adams / @holizz

12/29/2010 at 01:31AM

15
#885 - Fictorial / @fictorial

12/29/2010 at 06:13AM

15
#886 - Gautier / @Gowtier

12/29/2010 at 12:38PM

15
#887 - Lee Jarvis / @lee_jarvis

12/29/2010 at 03:52PM

15
#888 - Rajit Singh / @rajitbsingh

12/29/2010 at 11:25PM

15
#889 - uuu / @uu59

12/30/2010 at 01:50AM

15
#890 - Ron Gejman / @rongejman

12/30/2010 at 06:48AM

15
#891 - Roland Crosby / @roooooland

12/30/2010 at 08:55AM

15
#892 - Marc Simonin / @TheGnorf

12/30/2010 at 11:40AM

15
#893 - garygordon / @garygordon

12/31/2010 at 12:49AM

15
#894 - Eivind Jahren / @HaskellElephant

01/19/2011 at 12:52PM

15
#895 - captain_morgan / @captain_morgan

04/21/2011 at 10:23PM

15
#896 - Rolf K. / @mindleftbody

06/17/2011 at 01:08PM

15
#897 - James / @defactojames

10/18/2012 at 01:45AM

15
#898 - Nicolas Friedli / @NicolasFriedli

10/29/2012 at 05:17PM

15
#899 - curist / @curist

07/09/2013 at 02:05AM

15
#900 - Kevin McGladdery / @run_kmc

07/31/2013 at 04:56AM