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 1466 remaining solutions by signing in and submitting your own entry
#1467 Zac sliker / @Zacsliker - Score: 111 - 01/29/20 @ 16:26
i<Esc>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dw<Down><Down><Down><Down>dwi<50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Up><Up><Up><Up><50-53>xaaax<Esc>[201~<Esc>:wq!<CR>

0 comments


Created by: @wolever

1467 active golfers, 4434 entries

Leaderboard (lowest score wins):
12
#631 - Johannes Riecken / @rubystallion

01/15/2020 at 06:49PM

12
#632 - li / @li94938987

01/24/2020 at 04:34PM

12
#633 - Brady Cornett / @BradyCornett

01/24/2020 at 08:23PM

12
#634 - Jason Neylon / @jasonneylon

01/28/2020 at 07:49PM

12
#635 - Sushrut Shirole / @sushrutshirole

01/31/2020 at 02:33AM

12
#636 - Patrick Bryan / @gadget086

02/26/2020 at 01:56AM

12
#637 - countime / @countime1

03/12/2020 at 10:44AM

12
#638 - Magnetic Spark / @Magnetic_Spark

03/14/2020 at 02:05AM

12
#639 - floyd / @floyd10086

03/20/2020 at 09:35AM

12
#640 - Quark / @PuzzleQuark

03/22/2020 at 06:21PM

12
#641 - Niklas Ydebäck / @Ydebaeck

03/22/2020 at 11:08PM

12
#642 - etherflow / @etherfl0w

03/30/2020 at 07:31PM

12
#643 - Nick Lee / @TooManyNickLees

04/05/2020 at 09:32PM

12
#644 - Moatvald / @moatvald

04/28/2020 at 01:42PM

12
#645 - Robin Abrahamsson / @rqAbrahamsson

04/30/2020 at 03:01PM

12
#646 - Arthur Goodman / @ArthurGoodman3

05/07/2020 at 09:44PM

12
#647 - Quentin Leroy / @qnleroy

05/08/2020 at 06:50AM

12
#648 - Kevin Keefe / @KevinKeefe5

05/15/2020 at 05:20PM

12
#649 - 于吉星 / @fishermryn

05/28/2020 at 08:52AM

12
#650 - RockerZZY / @rocker_zzy

05/28/2020 at 01:02PM

13
#651 - Soliman Sylvain / @sylvain_soliman

12/29/2010 at 12:54PM

13
#652 - Mariano Guerra / @marianoguerra

12/29/2010 at 01:22PM

13
#653 - arungn / @arungn

12/29/2010 at 07:02PM

13
#654 - Timothy DeBaillie / @timdebaillie

12/29/2010 at 09:33PM

13
#655 - Aurélien Delahaye / @alkove

01/02/2011 at 01:26AM

13
#656 - enzbang / @enzbang

01/08/2011 at 09:15PM

13
#657 - h_east (トロッコ6個) / @h_east

01/15/2011 at 05:20PM

13
#658 - Strahinja Popovic / @stralep

01/16/2011 at 10:11AM

13
#659 - Kristof Jozsa / @kjozsa

01/19/2011 at 02:42PM

13
#660 - David Pflug / @dpflug

02/04/2011 at 06:48PM