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):
16
#991 - Geir Helleloid / @geirhelleloid

12/17/2013 at 11:22PM

16
#992 - adamblank / @adamblank

12/20/2013 at 07:23PM

16
#993 - Greg Jebb / @jebbster

01/06/2014 at 08:25PM

16
#994 - Andreas Källberg / @Anka213

01/17/2014 at 04:16AM

16
#995 - jimauthors / @jimauthors

02/07/2014 at 02:33AM

16
#996 - Amir Kremer / @AmirKremer

02/09/2014 at 01:43PM

16
#997 - Jean-PhilippeBurelle / @jpburelle

03/02/2014 at 04:42AM

16
#998 - Kamil Krzyżanowski / @kamnxt

03/14/2014 at 05:14PM

16
#999 - Krillian / @Krillian3

03/28/2014 at 02:23PM

16
#1000 - Kane Wallmann / @ToCsIcK

04/27/2014 at 11:07AM

16
#1001 - Solar Powered Robot / @moskrin

04/30/2014 at 06:29PM

16
#1002 - Rob Glew / @RealGlew

06/05/2014 at 07:38PM

16
#1003 - Boyang Zhu / @boyangzhu1

06/05/2014 at 07:38PM

16
#1004 - compiled wrong / @compiledwrong

06/23/2014 at 12:28AM

16
#1005 - Pierre Hanselmann / @Zophar78

07/04/2014 at 08:16PM

16
#1006 - Cengiz Can / @cengizIO

07/25/2014 at 07:22AM

16
#1007 - daveseibert / @daveseibert

08/02/2014 at 03:40AM

16
#1008 - Eric Kever / @codeoverlode

09/29/2014 at 10:52PM

16
#1009 - SilentFl / @Silent_Fl

01/27/2015 at 09:12AM

16
#1010 - d1uckym d1uckym / @d1uckym

02/16/2015 at 06:46AM

16
#1011 - TheProgrammer971 / @tp971

03/14/2015 at 11:26PM

16
#1012 - Jeffrey Gu / @Jeffrey_Gu

03/20/2015 at 04:34PM

16
#1013 - shugen / @shugeno

03/23/2015 at 08:40PM

16
#1014 - William Ott / @oddalot

04/08/2015 at 01:10PM

16
#1015 - Andrew Larson / @applarson

04/15/2015 at 06:11PM

16
#1016 - Dylan Hart / @code_problem

04/21/2015 at 07:06AM

16
#1017 - Gracjan Grala / @gracjangrala

04/24/2015 at 11:11PM

16
#1018 - chvzvhn / @chvzvhn

04/27/2015 at 04:50AM

16
#1019 - Henrik Lindgren / @HeLi8one

05/17/2015 at 07:59PM

16
#1020 - Sahana Rajasekar / @sahanarajasekar

06/11/2015 at 04:20AM