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

1267 active golfers, 3898 entries

Leaderboard (lowest score wins):
12
#121 - Sammasati / @sammasati0

07/15/2011 at 06:31PM

12
#122 - Hu Junfeng / @junfeng

07/16/2011 at 12:57PM

12
#123 - Eric Gerlach / @egerlach

07/17/2011 at 05:18AM

12
#124 - Michael Sofaer / @MikeSofaer

07/29/2011 at 07:16AM

12
#125 - Anton / @al_alley

07/31/2011 at 06:47AM

12
#126 - Alexander Yermakov / @Mannavard

08/05/2011 at 12:26PM

12
#127 - Jason Then / @racc69

08/09/2011 at 02:13AM

12
#128 - Andrey Ivanov / @Bytamine

08/09/2011 at 01:18PM

12
#129 - Sam Washington / @shabalay

08/17/2011 at 11:31AM

12
#130 - Neil / @spameldoon

08/21/2011 at 12:51AM

12
#131 - Stanley Wang / @stanleynwang

08/25/2011 at 11:44AM

12
#132 - Tim Tsu / @vimgolfpunk

08/29/2011 at 12:55PM

12
#133 - Jesús Espino / @jespinog

09/07/2011 at 10:30AM

12
#134 - p0ckets / @p0ckets

10/06/2011 at 08:01PM

12
#135 - Matthew Boston / @bostonaholic

10/14/2011 at 01:45AM

12
#136 - Ben Sherman / @bensherman

10/31/2011 at 10:15PM

12
#137 - Jon Keating / @emostar

11/02/2011 at 09:19AM

12
#138 - nicolas bo / @thevegeta

11/09/2011 at 02:02PM

12
#139 - Travis Jeffery / @travisjeffery

11/22/2011 at 03:07AM

12
#140 - You-Siang Lin / @yslinnctu

11/23/2011 at 10:00AM

12
#141 - R.T. Lechow / @rtlechow

11/23/2011 at 03:58PM

12
#142 - abelourenco / @abelourenco

12/04/2011 at 06:32PM

12
#143 - Benjamin Sullivan / @benjaminsull

12/11/2011 at 12:50PM

12
#144 - Al / @96258

12/12/2011 at 03:47PM

12
#145 - Sean O'Hara / @_sohara

12/20/2011 at 06:43PM

12
#146 - Pei-Lun Lee / @ypcatw

12/23/2011 at 03:54AM

12
#147 - Jaime A. Sánchez / @jashbeta

12/26/2011 at 02:31AM

12
#148 - Xavier Nayrac / @lkdjiin

12/29/2011 at 06:24PM

12
#149 - Renat Aksitov / @Korvin79

02/05/2012 at 08:09PM

12
#150 - Zeh Rizzatti / @zehrizzatti

02/07/2012 at 04:38AM