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

1356 active golfers, 4170 entries

Leaderboard (lowest score wins):
14
#811 - Andrew Crites / @ExplosionPills

09/12/2013 at 01:38PM

14
#812 - Bjorn / @bjorn_248

09/12/2013 at 01:41PM

14
#813 - James T. Huggett / @Jmeshka

09/27/2013 at 03:13PM

14
#814 - Casey Dwyer / @caseydwyer

10/23/2013 at 02:26PM

14
#815 - Balthamos / @balthamos89

11/02/2013 at 03:32AM

14
#816 - Fontaine Kévin / @DotSlash974

11/16/2013 at 06:33PM

14
#817 - Daniel Marjenburgh / @dmarjenburgh

11/17/2013 at 02:36PM

14
#818 - newton / @newtonsmartt

12/06/2013 at 03:19AM

14
#819 - Foo Bar / @FooWatson

12/10/2013 at 03:18PM

14
#820 - Fetrarijaona Randria / @fetrarij

12/13/2013 at 02:53AM

14
#821 - D / @justcallmedrago

12/15/2013 at 02:21AM

14
#822 - Tom Richards / @the_tomrichards

12/30/2013 at 03:24PM

14
#823 - André / @Joschasa

01/22/2014 at 03:33PM

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

02/02/2014 at 05:15PM

14
#825 - kli / @klidev

02/03/2014 at 02:54AM

14
#826 - Jonas Carpay / @JKarpee

02/10/2014 at 04:23PM

14
#827 - Luke Ellis / @slav0x

03/22/2014 at 05:19AM

14
#828 - Amit Verma / @amitv12

03/30/2014 at 05:06AM

14
#829 - Endir / @Endir2

04/17/2014 at 04:24PM

14
#830 - Aleksander Gajewski / @adgajewski

04/20/2014 at 02:50PM

14
#831 - Dan / @dcuaron

05/25/2014 at 08:41PM

14
#832 - jhvaras / @jhvaras

05/31/2014 at 07:47PM

14
#833 - Pratyush Mishra / @I_am_Tomato

06/21/2014 at 11:44PM

14
#834 - Jacob Branaugh / @jacobbranaugh

06/25/2014 at 08:40PM

14
#835 - Nic West / @west_nic

07/03/2014 at 06:03PM

14
#836 - iamevn / @iamevn

07/08/2014 at 04:56PM

14
#837 - Paul Axe / @Paul_Axe

07/29/2014 at 02:40PM

14
#838 - Eric Wang / @gnawrice

08/06/2014 at 12:30AM

14
#839 - joshuavial / @joshuavial

08/16/2014 at 01:42AM

14
#840 - Daniel Mita / @Mienaikage

09/02/2014 at 10:50AM