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

1314 active golfers, 4058 entries

Leaderboard (lowest score wins):
12
#301 - Kenneth Ozdowy / @KolonelKoinkers

03/21/2014 at 12:48AM

12
#302 - Yann B. / @y__b__y

04/02/2014 at 10:49PM

12
#303 - Jeff / @just_geophree

04/03/2014 at 06:06AM

12
#304 - buz / @buzbone

04/07/2014 at 08:39PM

12
#305 - gcavn / @gcavn

04/10/2014 at 10:20AM

12
#306 - HippieGeekGrrl / @hippiegeekgrrl

04/10/2014 at 01:01PM

12
#307 - Peeby Thirtyone / @peeby31

05/03/2014 at 10:24PM

12
#308 - Chaitanya Desu / @ChaituNu

05/04/2014 at 09:34PM

12
#309 - Joey Liu / @JoeytallLiu

05/06/2014 at 06:14AM

12
#310 - Default default / @Fuck_default

05/07/2014 at 07:21AM

12
#311 - zmo / @guyzmo

05/10/2014 at 02:55PM

12
#312 - Arthur叔 / @Arthurljg

05/11/2014 at 08:30AM

12
#313 - Alex Bishop / @AlexJBishop

05/15/2014 at 03:52PM

12
#314 - kiho choi / @ArtStandAlone

05/31/2014 at 09:48AM

12
#315 - Sntano Euhsk / @SEuhsk

06/01/2014 at 04:47AM

12
#316 - Jake Eaton / @Jake__Eaton

06/01/2014 at 06:52AM

12
#317 - Subhi Dweik / @SubhiDweik

06/02/2014 at 11:57PM

12
#318 - Ben / @CubicPants

06/04/2014 at 04:55AM

12
#319 - Alishah Chator / @alicharizard

06/05/2014 at 08:06PM

12
#320 - Bart / @oneofmanybarts

06/11/2014 at 07:46AM

12
#321 - Robert Bruce / @therealrobru

06/11/2014 at 08:15PM

12
#322 - Christoph Neuroth / @c089

06/15/2014 at 01:48PM

12
#323 - Timothy Chong / @timothychongg

06/20/2014 at 07:29PM

12
#324 - Eric Lau / @elau89

06/21/2014 at 10:21PM

12
#325 - John Meisner / @jmeisned

06/24/2014 at 09:40PM

12
#326 - François Marais / @maraisf

06/26/2014 at 09:29AM

12
#327 - bXpjE4GzUfnPTRHes1mI / @5DQzMDKJs2VoVt

06/26/2014 at 04:54PM

12
#328 - Ram Tamtam / @ramtamtamtam

06/29/2014 at 08:13PM

12
#329 - André Branco / @avbranco

06/30/2014 at 03:46PM

12
#330 - Lasse Dalegaard / @ldalegaard

07/07/2014 at 09:46PM