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

1354 active golfers, 4166 entries

Leaderboard (lowest score wins):
15
#931 - Empress Effects / @empress_effects

07/03/2014 at 11:24PM

15
#932 - PLS / @jaegd

08/04/2014 at 05:32PM

15
#933 - Daniel / @dazn159

08/15/2014 at 10:23PM

15
#934 - Tomasz / @peper02

08/17/2014 at 11:33AM

15
#935 - Geoff Huston / @AGeoffHuston

12/23/2014 at 04:57AM

15
#936 - r. / @rmarvie

12/23/2014 at 02:18PM

15
#937 - YK / @Dongas420

03/03/2015 at 08:29PM

15
#938 - Walf / @walfieee

03/23/2015 at 09:53PM

15
#939 - Andrew Michaud / @andrewjmichaud

09/16/2015 at 10:58AM

15
#940 - DavidF_BE / @DavidF_BE

09/30/2015 at 07:00PM

15
#941 - Bogumił Kamiński / @BogumilKaminski

10/26/2015 at 06:20PM

15
#942 - Дмитрий Кремез / @dima_kremez

10/25/2016 at 09:00PM

15
#943 - Миша Сорокин / @rafmikovi4

04/10/2017 at 11:56AM

15
#944 - Guillaume / @WeshGuillaume

08/23/2017 at 01:05PM

15
#945 - George Angelopoulos / @g_usermod

11/22/2017 at 01:31PM

15
#946 - Goopy Flux / @GoopyFlux

12/21/2017 at 06:53PM

15
#947 - Veljko Dimic / @v2dimic

02/12/2018 at 02:45PM

15
#948 - 赤佐田奈葉 / @akasatanaha_

06/20/2018 at 04:39AM

15
#949 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 08:27AM

16
#950 - Mike Plotz / @antisuji

12/29/2010 at 02:46AM

16
#951 - Ryan Kanno / @ryankanno

12/29/2010 at 11:27AM

16
#952 - Glorp Norp / @glorpglorp

12/29/2010 at 02:13PM

16
#953 - dcbaok / @dcbaok

12/29/2010 at 08:48PM

16
#954 - uoɹɹɐɥƆ ꞁǝnɯɐS / @samuelcharron

12/30/2010 at 01:06AM

16
#955 - Pierre / @Pihour

12/30/2010 at 06:36AM

16
#956 - Jordan Lewis / @JordanALewis

12/30/2010 at 06:48PM

16
#957 - Denis Odorcic / @denisodorcic

12/30/2010 at 07:44PM

16
#958 - Rune Botten / @runeb

12/31/2010 at 01:36AM

16
#959 - Peter Anselmo / @peter_anselmo

01/02/2011 at 06:45AM

16
#960 - Foo Foo / @foofoofoo42

01/03/2011 at 07:37AM