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
#901 - ciela / @lededex

08/28/2019 at 07:04PM

14
#902 - Hans Lidiki / @HLidiki

09/07/2019 at 06:04PM

14
#903 - Ariel Miculas / @ArielMiculas

09/19/2019 at 03:24PM

15
#904 - Tom Adams / @holizz

12/29/2010 at 01:31AM

15
#905 - Fictorial / @fictorial

12/29/2010 at 06:13AM

15
#906 - Gautier / @Gowtier

12/29/2010 at 12:38PM

15
#907 - Lee Jarvis / @lee_jarvis

12/29/2010 at 03:52PM

15
#908 - Rajit Singh / @rajitbsingh

12/29/2010 at 11:25PM

15
#909 - uuu / @uu59

12/30/2010 at 01:50AM

15
#910 - Ron Gejman / @rongejman

12/30/2010 at 06:48AM

15
#911 - Roland Crosby / @roooooland

12/30/2010 at 08:55AM

15
#912 - Marc Simonin / @TheGnorf

12/30/2010 at 11:40AM

15
#913 - garygordon / @garygordon

12/31/2010 at 12:49AM

15
#914 - Eivind Jahren / @HaskellElephant

01/19/2011 at 12:52PM

15
#915 - captain_morgan / @captain_morgan

04/21/2011 at 10:23PM

15
#916 - Rolf K. / @mindleftbody

06/17/2011 at 01:08PM

15
#917 - James / @defactojames

10/18/2012 at 01:45AM

15
#918 - Nicolas Friedli / @NicolasFriedli

10/29/2012 at 05:17PM

15
#919 - curist / @curist

07/09/2013 at 02:05AM

15
#920 - Kevin McGladdery / @run_kmc

07/31/2013 at 04:56AM

15
#921 - Hachez Floran / @FloranHachez

09/02/2013 at 09:24PM

15
#922 - Vim Golfer / @vim_golfer

09/29/2013 at 05:37AM

15
#923 - Jesse Nazario / @jessenzr

10/16/2013 at 07:26PM

15
#924 - A. N. / @arez42

10/24/2013 at 06:37AM

15
#925 - Mathieu Larouche / @matdube

11/26/2013 at 06:04PM

15
#926 - Bambu / @bambumandinga

12/14/2013 at 03:44AM

15
#927 - Petr Broz / @ipetrbroz

12/17/2013 at 01:40AM

15
#928 - Matthew M. Keeler / @keelerm84

02/02/2014 at 05:29AM

15
#929 - Alex Kunin / @alexkunin

02/02/2014 at 05:19PM

15
#930 - devper94 / @devper94

03/16/2014 at 09:19AM