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

1368 active golfers, 4206 entries

Leaderboard (lowest score wins):
14
#871 - hardaudit / @hardaudit

02/24/2016 at 04:28PM

14
#872 - Chenut Ludovic / @7Brwa7

03/31/2016 at 10:20AM

14
#873 - iNaKoll / @iNaKoll

05/07/2016 at 06:18PM

14
#874 - イーサン / @metakirby5

08/18/2016 at 11:01PM

14
#875 - Baptiste Vannesson / @Badacadabra

08/26/2016 at 06:40PM

14
#876 - Zdravko Colic / @virtual_key

09/14/2016 at 08:40AM

14
#877 - Netrisk Cool / @C00lt0

10/03/2016 at 10:08AM

14
#878 - TweetDreams / @TweetMusicians

10/09/2016 at 06:29AM

14
#879 - Josh Callender / @Saponifi3d

10/16/2016 at 12:55AM

14
#880 - Jonathan Elliott / @jon__elliott

11/04/2016 at 06:54PM

14
#881 - Michał Dytko / @DytkoM

12/21/2016 at 10:40AM

14
#882 - J. Cosa / @esoesotracosa

01/18/2017 at 03:14PM

14
#883 - Yann / @yannstad

02/21/2017 at 07:39AM

14
#884 - Raymond Chang / @raymond743209

04/10/2017 at 03:41AM

14
#885 - Stop and think / @ms_uncountable

07/06/2017 at 12:00PM

14
#886 - Clement Keirua / @clemkeirua

08/11/2017 at 09:58PM

14
#887 - Laurent Atlan / @laurentatlan1

09/11/2017 at 04:25PM

14
#888 - Mike Harris / @MikeMJHarris

11/14/2017 at 03:29PM

14
#889 - Kyrylo Yakymenko / @Yakimych

12/07/2017 at 09:05PM

14
#890 - Sachin Akula / @AkulaSachin

08/03/2018 at 03:59PM

14
#891 - Joao Figueiredo / @j1fig

10/04/2018 at 03:03PM

14
#892 - PJ Frazer / @pj_frazer

11/23/2018 at 09:18PM

14
#893 - Anant Mishra / @anantanni22

11/30/2018 at 09:40AM

14
#894 - wrglprmft / @wrglprmft

01/19/2019 at 10:19PM

14
#895 - churaki / @churaki

01/26/2019 at 04:33AM

14
#896 - gtgtgt02 / @gtgtgt02

03/30/2019 at 08:51PM

14
#897 - Duke Du / @DukeDu2

04/05/2019 at 02:01AM

14
#898 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 08:58AM

14
#899 - Tony Buranzon / @therealTbunz

04/24/2019 at 05:41PM

14
#900 - nvb46c74f8ih / @nvb46c74f8ih

05/18/2019 at 07:23AM