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
#811 - Tresifina / @Tresifina

07/11/2013 at 03:58PM

14
#812 - Brian Besmanoff / @BrianBesmanoff

07/14/2013 at 02:13AM

14
#813 - A / @Tower_1980

07/29/2013 at 01:33PM

14
#814 - Peter Lustig / @LustigPeter42

07/29/2013 at 09:56PM

14
#815 - Gdleon / @GdLe0n

08/10/2013 at 10:02AM

14
#816 - David Pathakjee / @DavidPathakjee

08/14/2013 at 04:30AM

14
#817 - James / @Dronak

08/29/2013 at 02:29PM

14
#818 - yaon / @yaon4

09/12/2013 at 09:26AM

14
#819 - Andrew Crites / @ExplosionPills

09/12/2013 at 01:38PM

14
#820 - Bjorn / @bjorn_248

09/12/2013 at 01:41PM

14
#821 - James T. Huggett / @Jmeshka

09/27/2013 at 03:13PM

14
#822 - Casey Dwyer / @caseydwyer

10/23/2013 at 02:26PM

14
#823 - Balthamos / @balthamos89

11/02/2013 at 03:32AM

14
#824 - Fontaine Kévin / @DotSlash974

11/16/2013 at 06:33PM

14
#825 - Daniel Marjenburgh / @dmarjenburgh

11/17/2013 at 02:36PM

14
#826 - newton / @newtonsmartt

12/06/2013 at 03:19AM

14
#827 - Foo Bar / @FooWatson

12/10/2013 at 03:18PM

14
#828 - Fetrarijaona Randria / @fetrarij

12/13/2013 at 02:53AM

14
#829 - D / @justcallmedrago

12/15/2013 at 02:21AM

14
#830 - Tom Richards / @the_tomrichards

12/30/2013 at 03:24PM

14
#831 - André / @Joschasa

01/22/2014 at 03:33PM

14
#832 - Павел Игоревич / @VizierST

02/02/2014 at 05:15PM

14
#833 - kli / @klidev

02/03/2014 at 02:54AM

14
#834 - Jonas Carpay / @JKarpee

02/10/2014 at 04:23PM

14
#835 - Luke Ellis / @slav0x

03/22/2014 at 05:19AM

14
#836 - Amit Verma / @amitv12

03/30/2014 at 05:06AM

14
#837 - Endir / @Endir2

04/17/2014 at 04:24PM

14
#838 - Aleksander Gajewski / @adgajewski

04/20/2014 at 02:50PM

14
#839 - Dan / @dcuaron

05/25/2014 at 08:41PM

14
#840 - jhvaras / @jhvaras

05/31/2014 at 07:47PM