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 1440 remaining solutions by signing in and submitting your own entry
#1441 Zac sliker / @Zacsliker - Score: 111 - 01/29/20 @ 16:26
i<Esc>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dwi<50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Esc>:wq!<CR>

0 comments


Created by: @wolever

1441 active golfers, 4346 entries

Leaderboard (lowest score wins):
15
#961 - Alex Kunin / @alexkunin

02/02/2014 at 05:19PM

15
#962 - devper94 / @devper94

03/16/2014 at 09:19AM

15
#963 - onthos / @onthos_

04/25/2014 at 09:45AM

15
#964 - 土ヤ / @ttsuchiya

04/27/2014 at 09:53AM

15
#965 - Empress Effects / @empress_effects

07/03/2014 at 11:24PM

15
#966 - PLS / @jaegd

08/04/2014 at 05:32PM

15
#967 - Daniel / @dazn159

08/15/2014 at 10:23PM

15
#968 - Tomasz / @peper02

08/17/2014 at 11:33AM

15
#969 - Geoff Huston / @AGeoffHuston

12/23/2014 at 04:57AM

15
#970 - r. / @rmarvie

12/23/2014 at 02:18PM

15
#971 - YK / @Dongas420

03/03/2015 at 08:29PM

15
#972 - Walf / @walfieee

03/23/2015 at 09:53PM

15
#973 - Andrew Michaud / @andrewjmichaud

09/16/2015 at 10:58AM

15
#974 - DavidF_BE / @DavidF_BE

09/30/2015 at 07:00PM

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

10/26/2015 at 06:20PM

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

10/25/2016 at 09:00PM

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

04/10/2017 at 11:56AM

15
#978 - Guillaume / @WeshGuillaume

08/23/2017 at 01:05PM

15
#979 - George Angelopoulos / @g_usermod

11/22/2017 at 01:31PM

15
#980 - Goopy Flux / @GoopyFlux

12/21/2017 at 06:53PM

15
#981 - Veljko Dimic / @v2dimic

02/12/2018 at 02:45PM

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

06/20/2018 at 04:39AM

15
#983 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 08:27AM

15
#984 - Baine Wedlock / @BaineWedlock

09/24/2019 at 11:47AM

15
#985 - 0xNinja / @0x_Ninja

11/14/2019 at 10:16AM

16
#986 - Mike Plotz / @antisuji

12/29/2010 at 02:46AM

16
#987 - Ryan Kanno / @ryankanno

12/29/2010 at 11:27AM

16
#988 - Glorp Norp / @glorpglorp

12/29/2010 at 02:13PM

16
#989 - dcbaok / @dcbaok

12/29/2010 at 08:48PM

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

12/30/2010 at 01:06AM