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):
15
#901 - Vim Golfer / @vim_golfer

09/29/2013 at 05:37AM

15
#902 - Jesse Nazario / @jessenzr

10/16/2013 at 07:26PM

15
#903 - A. N. / @arez42

10/24/2013 at 06:37AM

15
#904 - Mathieu Larouche / @matdube

11/26/2013 at 06:04PM

15
#905 - Bambu / @bambumandinga

12/14/2013 at 03:44AM

15
#906 - Petr Broz / @ipetrbroz

12/17/2013 at 01:40AM

15
#907 - Matthew M. Keeler / @keelerm84

02/02/2014 at 05:29AM

15
#908 - Alex Kunin / @alexkunin

02/02/2014 at 05:19PM

15
#909 - devper94 / @devper94

03/16/2014 at 09:19AM

15
#910 - onthos / @onthos_

04/25/2014 at 09:45AM

15
#911 - 土ヤ / @ttsuchiya

04/27/2014 at 09:53AM

15
#912 - Empress Effects / @empress_effects

07/03/2014 at 11:24PM

15
#913 - PLS / @jaegd

08/04/2014 at 05:32PM

15
#914 - Daniel / @dazn159

08/15/2014 at 10:23PM

15
#915 - Tomasz / @peper02

08/17/2014 at 11:33AM

15
#916 - Geoff Huston / @AGeoffHuston

12/23/2014 at 04:57AM

15
#917 - r. / @rmarvie

12/23/2014 at 02:18PM

15
#918 - YK / @Dongas420

03/03/2015 at 08:29PM

15
#919 - Walf / @walfieee

03/23/2015 at 09:53PM

15
#920 - Andrew Michaud / @andrewjmichaud

09/16/2015 at 10:58AM

15
#921 - DavidF_BE / @DavidF_BE

09/30/2015 at 07:00PM

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

10/26/2015 at 06:20PM

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

10/25/2016 at 09:00PM

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

04/10/2017 at 11:56AM

15
#925 - Guillaume / @WeshGuillaume

08/23/2017 at 01:05PM

15
#926 - George Angelopoulos / @g_usermod

11/22/2017 at 01:31PM

15
#927 - Goopy Flux / @GoopyFlux

12/21/2017 at 06:53PM

15
#928 - Veljko Dimic / @v2dimic

02/12/2018 at 02:45PM

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

06/20/2018 at 04:39AM

15
#930 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 08:27AM