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):
14
#811 - Jonas Carpay / @JKarpee

02/10/2014 at 04:23PM

14
#812 - Luke Ellis / @slav0x

03/22/2014 at 05:19AM

14
#813 - Amit Verma / @amitv12

03/30/2014 at 05:06AM

14
#814 - Endir / @Endir2

04/17/2014 at 04:24PM

14
#815 - Aleksander Gajewski / @adgajewski

04/20/2014 at 02:50PM

14
#816 - Dan / @dcuaron

05/25/2014 at 08:41PM

14
#817 - jhvaras / @jhvaras

05/31/2014 at 07:47PM

14
#818 - Pratyush Mishra / @I_am_Tomato

06/21/2014 at 11:44PM

14
#819 - Jacob Branaugh / @jacobbranaugh

06/25/2014 at 08:40PM

14
#820 - Nic West / @west_nic

07/03/2014 at 06:03PM

14
#821 - iamevn / @iamevn

07/08/2014 at 04:56PM

14
#822 - Paul Axe / @Paul_Axe

07/29/2014 at 02:40PM

14
#823 - Eric Wang / @gnawrice

08/06/2014 at 12:30AM

14
#824 - joshuavial / @joshuavial

08/16/2014 at 01:42AM

14
#825 - Daniel Mita / @Mienaikage

09/02/2014 at 10:50AM

14
#826 - vim doof / @vimdoof

09/23/2014 at 08:50PM

14
#827 - Lupus Woulfe / @vim_mernd

09/23/2014 at 08:51PM

14
#828 - Violette Vanadium / @ViolettVanadium

10/08/2014 at 06:04AM

14
#829 - Malte R / @maltoe

11/30/2014 at 02:58PM

14
#830 - mnx / @mnxx

12/23/2014 at 10:35AM

14
#831 - Mariano Macchi / @mmacchif

03/05/2015 at 09:04PM

14
#832 - Hendrik Lammers / @hendriklammers

04/18/2015 at 11:32PM

14
#833 - Gael Roue / @gaelroue

05/02/2015 at 03:19PM

14
#834 - Stefan Knudsen / @knud32

05/05/2015 at 06:52AM

14
#835 - Alex Bartol / @alexbartol

05/06/2015 at 05:42AM

14
#836 - luffy / @raxcoi

06/06/2015 at 04:50PM

14
#837 - Maxime / @Maxime_VII

06/23/2015 at 03:02PM

14
#838 - Lindsay Swift / @_lindsai_

07/07/2015 at 09:16PM

14
#839 - Endre Galaczi / @galacziendre

08/05/2015 at 02:34PM

14
#840 - MrTchuss / @buffer_x90

08/08/2015 at 11:24AM