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

1361 active golfers, 4187 entries

Leaderboard (lowest score wins):
18
#1141 - Zachery Chin / @momochi0

11/05/2013 at 07:26PM

18
#1142 - Alberto Pose / @thepose

11/06/2013 at 05:44PM

18
#1143 - rubberfreak / @rubberfreak

11/06/2013 at 08:10PM

18
#1144 - en0 / @sgen0

12/12/2013 at 11:15PM

18
#1145 - Karun Ramakrishnan / @the_karun

01/16/2014 at 05:43PM

18
#1146 - Kim Laï Trinh / @KimLaTrinh

01/23/2014 at 04:16PM

18
#1147 - Korbinian Stoemmer / @PaulSmecker

01/30/2014 at 08:54PM

18
#1148 - Chi Bong Ho / @chibongho

02/19/2014 at 09:07PM

18
#1149 - Alec Winograd / @awinograd

02/24/2014 at 09:15PM

18
#1150 - Peter J. Foti / @peterjfoti

02/27/2014 at 01:00AM

18
#1151 - Jacob / @jayekub

03/22/2014 at 11:25PM

18
#1152 - ryk / @rykarn

03/29/2014 at 01:34PM

18
#1153 - Felipe Jaramillo F / @mrfelipe

04/01/2014 at 05:31AM

18
#1154 - Stefan Leszkiewicz / @stefanlz

04/21/2014 at 03:20AM

18
#1155 - Anthony Robson / @anthonyrobson9

05/05/2014 at 01:47AM

18
#1156 - Håkon Kaurel / @HkonKaurel

05/14/2014 at 09:32AM

18
#1157 - Kyle Travis / @kmakai

05/16/2014 at 03:16PM

18
#1158 - jus / @der_jus

05/19/2014 at 05:23PM

18
#1159 - Angelos Mouzakitis / @Gr33kR

05/25/2014 at 11:17PM

18
#1160 - eitanlees / @eitanlees

06/23/2014 at 03:59AM

18
#1161 - Tim Habermaas / @timhabermaas

06/24/2014 at 08:38PM

18
#1162 - Andrew Simms / @andrewdsimms

06/25/2014 at 04:34PM

18
#1163 - glennphillips / @glennphillips

07/09/2014 at 09:10PM

18
#1164 - bratliff / @bratliff

08/10/2014 at 06:17AM

18
#1165 - Koji Wakayama / @wakayamakoji

08/13/2014 at 10:32PM

18
#1166 - Kentaro Wakayama / @wakayamakentaro

08/13/2014 at 10:32PM

18
#1167 - Justin Knag / @justinknag

08/28/2014 at 02:43PM

18
#1168 - A Fleck / @andfleck

10/11/2014 at 02:44PM

18
#1169 - Jake Worth / @jwworth

11/05/2014 at 03:47PM

18
#1170 - Virassamy Yohan / @Yoh_Ahn

12/15/2014 at 04:44PM