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):
16
#1051 - Adrien / @beudbeud

08/17/2019 at 08:17AM

17
#1052 - Christopher Suter / @cgs1019

12/29/2010 at 02:30AM

17
#1053 - senokay / @senokay

12/29/2010 at 06:32AM

17
#1054 - Perry Zheng / @PerryZheng

12/29/2010 at 07:16AM

17
#1055 - omelo / @omelo

12/29/2010 at 08:16AM

17
#1056 - Bernerd Schaefer / @bjschaefer

12/29/2010 at 09:33AM

17
#1057 - Jan / @janhxie

12/29/2010 at 11:02AM

17
#1058 - Paul Tarjan / @ptarjan

12/29/2010 at 11:20AM

17
#1059 - Eduardo Sampaio / @esampaio

12/29/2010 at 12:53PM

17
#1060 - Baron Von Ernesto / @excepttheweasel

12/29/2010 at 01:42PM

17
#1061 - Alexey Komissarouk / @alexeymk

12/29/2010 at 01:43PM

17
#1062 - Alex B. / @SIGKILL

12/29/2010 at 01:58PM

17
#1063 - Linus G Thiel / @yesbabyyes

12/29/2010 at 02:03PM

17
#1064 - Aleksander Balicki / @alekbalicki

12/29/2010 at 02:23PM

17
#1065 - Bartek Ciszkowski / @bartekci

12/29/2010 at 02:24PM

17
#1066 - Justin Kinney / @jakinne

12/29/2010 at 02:43PM

17
#1067 - Tommy Stanton / @tommystanton

12/29/2010 at 05:11PM

17
#1068 - andrew / @thebaldwin

12/30/2010 at 05:16AM

17
#1069 - jonbell17 / @jonbell17

12/30/2010 at 07:54PM

17
#1070 - Корнев Руслан / @woto7

01/03/2011 at 09:01PM

17
#1071 - Nick Klauer / @klauern

05/07/2011 at 04:33AM

17
#1072 - Mikhail Korepanov / @PanyaKor

06/13/2011 at 03:47PM

17
#1073 - Aaron Kalin / @martinisoft

09/16/2011 at 01:03AM

17
#1074 - matthew / @mdespuits

02/03/2012 at 06:23AM

17
#1075 - ise0615 / @ise0615

05/04/2012 at 05:39PM

17
#1076 - Guillaume Ferrand / @thedigital

07/13/2012 at 03:57PM

17
#1077 - Viswanath Sivakumar / @viswanathgs

08/30/2012 at 10:36AM

17
#1078 - boobooopower / @boobooopower

02/06/2013 at 07:09PM

17
#1079 - George GZ Zakhour / @AlloGeorge

06/25/2013 at 11:30AM

17
#1080 - Jesse Fisher / @jessecfisher

08/23/2013 at 10:20PM