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 5cb9d07d716c1b0009f69a40

ninja substitution

How can you reuse a previous substitution ?

Start file
Trying to careninjafully make a ninja challenge.
This ninjaninjachallenge is ninjadesigned to show a particularninja vim ninjafeature (here I am ninjastalling in order to ninjadoge a shorter ninjacounter-based ninjasolution, sorry for the ninjaheadhache) this is the end of my ninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjalninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaininjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjanninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaeninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninja.
The question is, will a wiser vimgolf ninja defeat the purpose of this challenge ?
End file
Trying to carefully make a ninja challenge.
This challenge is designed to show a particular vim feature (here I am stalling in order to doge a shorter counter-based solution, sorry for the headhache) this is the end of my line.
The question is, will a wiser vimgolf ninja defeat the purpose of this challenge ?

View Diff

1,2c1,2
< Trying to careninjafully make a ninja challenge.
< This ninjaninjachallenge is ninjadesigned to show a particularninja vim ninjafeature (here I am ninjastalling in order to ninjadoge a shorter ninjacounter-based ninjasolution, sorry for the ninjaheadhache) this is the end of my ninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjalninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaininjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjanninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaeninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninjaninja.
---
> Trying to carefully make a ninja challenge.
> This challenge is designed to show a particular vim feature (here I am stalling in order to doge a shorter counter-based solution, sorry for the headhache) this is the end of my line.

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 89 remaining solutions by signing in and submitting your own entry
#90 Danny / @dannywood1976 - Score: 50 - 05/07/19 @ 08:55
:%s <C-H>/ninja//<CR>u:%s/ninja//g<CR>:%s/  / ninja /g<CR><Esc>:wq<CR>

0 comments


Created by: @TitouanT_

90 active golfers, 425 entries

Leaderboard (lowest score wins):
15
#31 - Darren Weston / @dazWestonUK

04/19/2019 at 08:07PM

15
#32 - Petro Тrouq / @zulolosi

04/21/2019 at 06:47PM

15
#33 - Raul / @Raul50174499

04/23/2019 at 05:05AM

15
#34 - Daniel Steinberg / @dstein64

04/27/2019 at 04:02PM

15
#35 - Roger Bongers / @RogerBongers

04/28/2019 at 02:53PM

15
#36 - tllilleh / @tllilleh

05/14/2019 at 09:29PM

15
#37 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:28AM

15
#38 - Arno / @arnoxmp

05/16/2019 at 09:27AM

15
#39 - heppen / @heppen_He

05/23/2019 at 10:38AM

15
#40 - deurzen / @devrzen

06/08/2019 at 03:49PM

15
#41 - A / @777Android777

06/20/2019 at 08:13PM

16
#42 - Tinko Minko / @tandikula

04/19/2019 at 05:28PM

16
#43 - jirgn / @jirgn

04/20/2019 at 05:36PM

16
#44 - Valacar / @valacar

04/20/2019 at 10:12PM

16
#45 - Gitsnik / @dracyrys

04/21/2019 at 12:03PM

16
#46 - Norbert / @mullno

04/22/2019 at 07:47PM

16
#47 - rg thomas / @rgt47

04/24/2019 at 02:13PM

16
#48 - Roger Stoltz / @rogsto1

04/24/2019 at 08:15PM

16
#49 - Kai.Li / @KaiLi19

04/27/2019 at 06:13AM

16
#50 - Amado Antonini / @AmadoAntonini

05/10/2019 at 11:23AM

16
#51 - Vitaly Sinilin / @unterwulf

05/17/2019 at 03:15PM

16
#52 - Leiser Fernández / @leiserfg

05/19/2019 at 04:46PM

16
#53 - Henry Wang (theKidOfArcrania) / @kidOfArcrania

05/24/2019 at 08:01PM

16
#54 - mkaminaga / @mkmng3

06/01/2019 at 06:31AM

17
#55 - Skywalker 666 / @MemeMasterXXI

04/23/2019 at 02:50PM

17
#56 - crazyminecuber / @crazyminecuber

04/24/2019 at 01:03PM

17
#57 - David McDonald / @dmcdona

05/15/2019 at 09:03PM

17
#58 - Lie Ryan / @lieryan

05/31/2019 at 09:45AM

18
#59 - BaffaloP 🐃🎨 / @bbaffalopp

04/22/2019 at 08:56PM

18
#60 - BenL / @BenL86660733

04/26/2019 at 12:10PM