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):
14
#871 - Josh Callender / @Saponifi3d

10/16/2016 at 12:55AM

14
#872 - Jonathan Elliott / @jon__elliott

11/04/2016 at 06:54PM

14
#873 - Michał Dytko / @DytkoM

12/21/2016 at 10:40AM

14
#874 - J. Cosa / @esoesotracosa

01/18/2017 at 03:14PM

14
#875 - Yann / @yannstad

02/21/2017 at 07:39AM

14
#876 - Raymond Chang / @raymond743209

04/10/2017 at 03:41AM

14
#877 - Stop and think / @ms_uncountable

07/06/2017 at 12:00PM

14
#878 - Clement Keirua / @clemkeirua

08/11/2017 at 09:58PM

14
#879 - Laurent Atlan / @laurentatlan1

09/11/2017 at 04:25PM

14
#880 - Mike Harris / @MikeMJHarris

11/14/2017 at 03:29PM

14
#881 - Kyrylo Yakymenko / @Yakimych

12/07/2017 at 09:05PM

14
#882 - Sachin Akula / @AkulaSachin

08/03/2018 at 03:59PM

14
#883 - Joao Figueiredo / @j1fig

10/04/2018 at 03:03PM

14
#884 - PJ Frazer / @pj_frazer

11/23/2018 at 09:18PM

14
#885 - Anant Mishra / @anantanni22

11/30/2018 at 09:40AM

14
#886 - wrglprmft / @wrglprmft

01/19/2019 at 10:19PM

14
#887 - churaki / @churaki

01/26/2019 at 04:33AM

14
#888 - gtgtgt02 / @gtgtgt02

03/30/2019 at 08:51PM

14
#889 - Duke Du / @DukeDu2

04/05/2019 at 02:01AM

14
#890 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 08:58AM

14
#891 - Tony Buranzon / @therealTbunz

04/24/2019 at 05:41PM

14
#892 - nvb46c74f8ih / @nvb46c74f8ih

05/18/2019 at 07:23AM

14
#893 - Nick Yeow / @nickyeow

05/22/2019 at 01:59PM

14
#894 - albalitz / @_albalitz

06/06/2019 at 11:17AM

14
#895 - cinder 🔥 / @cyndrdev

06/27/2019 at 06:30PM

14
#896 - Березницкий Вадим / @vad1mster

07/09/2019 at 11:35AM

14
#897 - Ivo Blöchliger / @aigledesalpes

08/04/2019 at 08:34PM

14
#898 - お-せ-よ- / @OhSayYo

08/26/2019 at 10:43PM

14
#899 - José / @AngelGaldamez

08/28/2019 at 03:30AM

14
#900 - ciela / @lededex

08/28/2019 at 07:04PM