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

1332 active golfers, 4096 entries

Leaderboard (lowest score wins):
14
#841 - MrTchuss / @buffer_x90

08/08/2015 at 11:24AM

14
#842 - Lifepillar / @lifepillar

10/01/2015 at 05:55PM

14
#843 - Mark Brody / @_markbrody

10/16/2015 at 04:23PM

14
#844 - Andrey Mishchenko / @mishchea

10/17/2015 at 03:59AM

14
#845 - Anshu Avinash / @anshu_avinash

10/18/2015 at 05:57PM

14
#846 - merphant / @merphant

10/23/2015 at 01:13AM

14
#847 - Sean Stout / @s183s657

12/09/2015 at 07:41AM

14
#848 - fuck GFW / @ravishGFW

01/05/2016 at 05:02AM

14
#849 - Durga Swaroop Perla / @durgaswaroop

02/10/2016 at 08:26PM

14
#850 - hardaudit / @hardaudit

02/24/2016 at 04:28PM

14
#851 - Chenut Ludovic / @7Brwa7

03/31/2016 at 10:20AM

14
#852 - iNaKoll / @iNaKoll

05/07/2016 at 06:18PM

14
#853 - イーサン / @metakirby5

08/18/2016 at 11:01PM

14
#854 - Baptiste Vannesson / @Badacadabra

08/26/2016 at 06:40PM

14
#855 - Zdravko Colic / @virtual_key

09/14/2016 at 08:40AM

14
#856 - Netrisk Cool / @C00lt0

10/03/2016 at 10:08AM

14
#857 - TweetDreams / @TweetMusicians

10/09/2016 at 06:29AM

14
#858 - Josh Callender / @Saponifi3d

10/16/2016 at 12:55AM

14
#859 - Jonathan Elliott / @jon__elliott

11/04/2016 at 06:54PM

14
#860 - Michał Dytko / @DytkoM

12/21/2016 at 10:40AM

14
#861 - J. Cosa / @esoesotracosa

01/18/2017 at 03:14PM

14
#862 - Yann / @yannstad

02/21/2017 at 07:39AM

14
#863 - Raymond Chang / @raymond743209

04/10/2017 at 03:41AM

14
#864 - Stop and think / @ms_uncountable

07/06/2017 at 12:00PM

14
#865 - Clement Keirua / @clemkeirua

08/11/2017 at 09:58PM

14
#866 - Laurent Atlan / @laurentatlan1

09/11/2017 at 04:25PM

14
#867 - Mike Harris / @MikeMJHarris

11/14/2017 at 03:29PM

14
#868 - Kyrylo Yakymenko / @Yakimych

12/07/2017 at 09:05PM

14
#869 - Sachin Akula / @AkulaSachin

08/03/2018 at 03:59PM

14
#870 - Joao Figueiredo / @j1fig

10/04/2018 at 03:03PM