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

1287 active golfers, 3963 entries

Leaderboard (lowest score wins):
12
#331 - playalong / @playwithit42

07/08/2014 at 12:50PM

12
#332 - magizbox / @rain_1024

07/13/2014 at 03:58AM

12
#333 - Paul Rodgers / @oursjaune

07/13/2014 at 03:12PM

12
#334 - Oleg Tsymbalyuk / @oleg_tc

07/14/2014 at 04:41AM

12
#335 - Rafee / @rafee_buet

07/22/2014 at 02:25PM

12
#336 - Caek / @Caek_

07/24/2014 at 05:04AM

12
#337 - Sergio Lopez / @wapankh

07/25/2014 at 10:26PM

12
#338 - MonkeyBrains ISP / @monkeybrainsnet

07/26/2014 at 07:56AM

12
#339 - fa / @twiteciop

08/07/2014 at 12:44PM

12
#340 - jabular / @jabular

08/15/2014 at 12:30PM

12
#341 - Fan Zhang / @2bDeactivat3d

08/17/2014 at 03:04AM

12
#342 - Bill Booth / @ohiopyle

08/20/2014 at 06:12AM

12
#343 - kemar / @le_kemar

08/20/2014 at 12:00PM

12
#344 - Dmitriy / @_dpy_

08/20/2014 at 09:28PM

12
#345 - Timothy Lin / @lzh9102

08/28/2014 at 04:40AM

12
#346 - Edgar Gonzalez / @gonzedge

09/03/2014 at 12:07AM

12
#347 - Greg / @developergreg

09/08/2014 at 01:34AM

12
#348 - Kristof Vannotten / @kristofv

09/08/2014 at 07:21PM

12
#349 - Dario Avitabile / @tutticapaci

09/09/2014 at 11:06PM

12
#350 - Giovanni Garufi / @garufi_giovanni

09/14/2014 at 09:40PM

12
#351 - Jose Gutierrez / @Jogusa

09/19/2014 at 01:26PM

12
#352 - Johannes H. / @neVexa

09/22/2014 at 10:36AM

12
#353 - iershov / @thorny_hamster

09/25/2014 at 02:29PM

12
#354 - Sergei Zhgirovski / @Ixanezis

10/11/2014 at 08:05PM

12
#355 - Hanakun. / @akunohanaKUN

10/16/2014 at 01:19PM

12
#356 - Nicholas Lee-Hone / @NicholasLeeHone

10/17/2014 at 05:21AM

12
#357 - Matthew Barrington / @mbarrin

10/27/2014 at 01:15AM

12
#358 - eBrnd / @eBrnd

11/02/2014 at 04:36PM

12
#359 - Hrvoje Kopinc / @Hrwaaa

11/16/2014 at 04:58PM

12
#360 - Glauco Pires / @grpires

11/26/2014 at 01:46PM