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
#781 - Rik Lomas / @riklomas

01/01/2012 at 12:13AM

14
#782 - ShikChen / @ShikChen

01/06/2012 at 05:05AM

14
#783 - aph / @aph777

02/03/2012 at 11:44AM

14
#784 - Christopher Brew / @Seph1rothVII

02/06/2012 at 06:12PM

14
#785 - ɟpsq / @bsdf

02/08/2012 at 08:03PM

14
#786 - Matthew Lewinski / @lewinski

02/25/2012 at 05:00AM

14
#787 - Kristopher Urie / @kristopherurie

02/28/2012 at 05:13AM

14
#788 - Sean Nilan / @seanmulan

04/12/2012 at 11:56PM

14
#789 - Mikael Ohlsson / @Mikael0hlsson

04/24/2012 at 06:03PM

14
#790 - Cat Dragon / @catragon

05/04/2012 at 08:09AM

14
#791 - Tomas Frostensson / @frostensson

05/22/2012 at 02:42PM

14
#792 - Tyler J. Kuhn / @blackwatertepes

08/27/2012 at 07:18AM

14
#793 - Arto Vuori / @dhpe

08/29/2012 at 10:07PM

14
#794 - yohe / @yohe_0616

12/23/2012 at 08:51AM

14
#795 - Alex Hammel / @AlexJHammel

12/23/2012 at 07:38PM

14
#796 - Runar / @runarfu

01/12/2013 at 09:58AM

14
#797 - n2o4 / @scatotonic

03/16/2013 at 09:26PM

14
#798 - Damon Alexander / @d_alexander6

04/17/2013 at 08:11PM

14
#799 - Global Maquereau / @GlobalMaquereau

04/24/2013 at 03:08PM

14
#800 - David Hoeffer / @dhoeffer

04/25/2013 at 02:10AM

14
#801 - vi-ly / @0x1C

07/09/2013 at 03:17AM

14
#802 - Ben Friedland / @bfriedland174

07/09/2013 at 11:21PM

14
#803 - Tresifina / @Tresifina

07/11/2013 at 03:58PM

14
#804 - Brian Besmanoff / @BrianBesmanoff

07/14/2013 at 02:13AM

14
#805 - A / @Tower_1980

07/29/2013 at 01:33PM

14
#806 - Peter Lustig / @LustigPeter42

07/29/2013 at 09:56PM

14
#807 - Gdleon / @GdLe0n

08/10/2013 at 10:02AM

14
#808 - David Pathakjee / @DavidPathakjee

08/14/2013 at 04:30AM

14
#809 - James / @Dronak

08/29/2013 at 02:29PM

14
#810 - yaon / @yaon4

09/12/2013 at 09:26AM