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

1332 active golfers, 4096 entries

Leaderboard (lowest score wins):
18
#1081 - Chris K. Engel / @m0rb

12/29/2010 at 04:37AM

18
#1082 - Scott Blomquist / @sblom

12/29/2010 at 07:18AM

18
#1083 - Ryan Fitzgerald / @rwfitzge

12/29/2010 at 09:27AM

18
#1084 - Indrek Juhkam / @indrekj

12/29/2010 at 12:54PM

18
#1085 - Peter Granger / @peter_granger

12/29/2010 at 02:50PM

18
#1086 - Nicolas Ledez / @nledez

12/29/2010 at 08:21PM

18
#1087 - Mike Cooper / @mythmon

12/29/2010 at 11:29PM

18
#1088 - alex scott / @4l3xsc0tt

12/30/2010 at 02:05AM

18
#1089 - Sam Nardoni / @samnardoni

12/31/2010 at 12:37AM

18
#1090 - drio / @drio

01/01/2011 at 01:01AM

18
#1091 - Helder Inacio / @inaciohj

01/07/2011 at 06:17AM

18
#1092 - fuck you / @jerkassholeface

01/15/2011 at 12:52AM

18
#1093 - SirVer / @SirVerII

01/22/2011 at 03:01PM

18
#1094 - Gord Tanner / @gordtanner

02/01/2011 at 03:36AM

18
#1095 - akhilravidas / @akhilravidas

08/18/2011 at 04:14AM

18
#1096 - Andrew Ogden / @ScruffyJanitor1

01/31/2012 at 06:35AM

18
#1097 - Philipp Bergsmann / @phbergsmann

01/31/2012 at 07:22PM

18
#1098 - Eric Kelly / @HeroicEric

02/15/2012 at 03:39PM

18
#1099 - Drew Benedetti / @cnorsl

02/16/2012 at 07:55PM

18
#1100 - Matty Williams / @matty_jwilliams

04/26/2012 at 07:55PM

18
#1101 - Michael Kessler / @netzpirat

05/24/2012 at 09:16PM

18
#1102 - JohnnyT / @johnny_t

07/30/2012 at 10:46PM

18
#1103 - Axl Waii / @axlwaii

08/26/2012 at 01:00PM

18
#1104 - sathish316 / @sathish316

11/20/2012 at 06:53AM

18
#1105 - . / @cronesan

11/20/2012 at 07:19PM

18
#1106 - Nick Bakkegaard / @Bakkemand

11/26/2012 at 11:39PM

18
#1107 - Pradeep Kumar / @pradeep6kumar

12/12/2012 at 02:08PM

18
#1108 - Angus Fletcher / @angusiguess

06/27/2013 at 09:18PM

18
#1109 - Endel Dreyer / @endel

06/30/2013 at 04:58AM

18
#1110 - Carl Shotwell / @carl_talks

07/05/2013 at 10:06PM