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
#781 - Runar / @runarfu

01/12/2013 at 09:58AM

14
#782 - n2o4 / @scatotonic

03/16/2013 at 09:26PM

14
#783 - Damon Alexander / @d_alexander6

04/17/2013 at 08:11PM

14
#784 - Global Maquereau / @GlobalMaquereau

04/24/2013 at 03:08PM

14
#785 - David Hoeffer / @dhoeffer

04/25/2013 at 02:10AM

14
#786 - vi-ly / @0x1C

07/09/2013 at 03:17AM

14
#787 - Ben Friedland / @bfriedland174

07/09/2013 at 11:21PM

14
#788 - Tresifina / @Tresifina

07/11/2013 at 03:58PM

14
#789 - Brian Besmanoff / @BrianBesmanoff

07/14/2013 at 02:13AM

14
#790 - A / @Tower_1980

07/29/2013 at 01:33PM

14
#791 - Peter Lustig / @LustigPeter42

07/29/2013 at 09:56PM

14
#792 - Gdleon / @GdLe0n

08/10/2013 at 10:02AM

14
#793 - David Pathakjee / @DavidPathakjee

08/14/2013 at 04:30AM

14
#794 - James / @Dronak

08/29/2013 at 02:29PM

14
#795 - yaon / @yaon4

09/12/2013 at 09:26AM

14
#796 - Andrew Crites / @ExplosionPills

09/12/2013 at 01:38PM

14
#797 - Bjorn / @bjorn_248

09/12/2013 at 01:41PM

14
#798 - James T. Huggett / @Jmeshka

09/27/2013 at 03:13PM

14
#799 - Casey Dwyer / @caseydwyer

10/23/2013 at 02:26PM

14
#800 - Balthamos / @balthamos89

11/02/2013 at 03:32AM

14
#801 - Fontaine Kévin / @DotSlash974

11/16/2013 at 06:33PM

14
#802 - Daniel Marjenburgh / @dmarjenburgh

11/17/2013 at 02:36PM

14
#803 - newton / @newtonsmartt

12/06/2013 at 03:19AM

14
#804 - Foo Bar / @FooWatson

12/10/2013 at 03:18PM

14
#805 - Fetrarijaona Randria / @fetrarij

12/13/2013 at 02:53AM

14
#806 - D / @justcallmedrago

12/15/2013 at 02:21AM

14
#807 - Tom Richards / @the_tomrichards

12/30/2013 at 03:24PM

14
#808 - André / @Joschasa

01/22/2014 at 03:33PM

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

02/02/2014 at 05:15PM

14
#810 - kli / @klidev

02/03/2014 at 02:54AM