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):
18
#1111 - Helder Inacio / @inaciohj

01/07/2011 at 06:17AM

18
#1112 - fuck you / @jerkassholeface

01/15/2011 at 12:52AM

18
#1113 - SirVer / @SirVerII

01/22/2011 at 03:01PM

18
#1114 - Gord Tanner / @gordtanner

02/01/2011 at 03:36AM

18
#1115 - akhilravidas / @akhilravidas

08/18/2011 at 04:14AM

18
#1116 - Andrew Ogden / @ScruffyJanitor1

01/31/2012 at 06:35AM

18
#1117 - Philipp Bergsmann / @phbergsmann

01/31/2012 at 07:22PM

18
#1118 - Eric Kelly / @HeroicEric

02/15/2012 at 03:39PM

18
#1119 - Drew Benedetti / @cnorsl

02/16/2012 at 07:55PM

18
#1120 - Matty Williams / @matty_jwilliams

04/26/2012 at 07:55PM

18
#1121 - Michael Kessler / @netzpirat

05/24/2012 at 09:16PM

18
#1122 - JohnnyT / @johnny_t

07/30/2012 at 10:46PM

18
#1123 - Axl Waii / @axlwaii

08/26/2012 at 01:00PM

18
#1124 - sathish316 / @sathish316

11/20/2012 at 06:53AM

18
#1125 - . / @cronesan

11/20/2012 at 07:19PM

18
#1126 - Nick Bakkegaard / @Bakkemand

11/26/2012 at 11:39PM

18
#1127 - Pradeep Kumar / @pradeep6kumar

12/12/2012 at 02:08PM

18
#1128 - Angus Fletcher / @angusiguess

06/27/2013 at 09:18PM

18
#1129 - Endel Dreyer / @endel

06/30/2013 at 04:58AM

18
#1130 - Carl Shotwell / @carl_talks

07/05/2013 at 10:06PM

18
#1131 - Tullio Facchinetti / @toolleeo

07/30/2013 at 10:25AM

18
#1132 - Akash Kothawale / @decached

10/08/2013 at 11:31AM

18
#1133 - mwcz / @mwcz

10/30/2013 at 08:15PM

18
#1134 - Zachery Chin / @momochi0

11/05/2013 at 07:26PM

18
#1135 - Alberto Pose / @thepose

11/06/2013 at 05:44PM

18
#1136 - rubberfreak / @rubberfreak

11/06/2013 at 08:10PM

18
#1137 - en0 / @sgen0

12/12/2013 at 11:15PM

18
#1138 - Karun Ramakrishnan / @the_karun

01/16/2014 at 05:43PM

18
#1139 - Kim Laï Trinh / @KimLaTrinh

01/23/2014 at 04:16PM

18
#1140 - Korbinian Stoemmer / @PaulSmecker

01/30/2014 at 08:54PM