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


#157 ENSORIZATION / @ensorization - Score: 50 - 11/02/19 @ 00:56
<Esc>:%s/ninja//gc<CR>ynqjkkj:.,$s/ninja//g<CR>/  <CR>aninja<Esc>ZZ

0 comments


Created by: @TitouanT_

157 active golfers, 780 entries

Leaderboard (lowest score wins):
16
#91 - Henry Wang (theKidOfArcrania) / @kidOfArcrania

05/24/2019 at 08:01PM

16
#92 - mkaminaga / @mkmng3

06/01/2019 at 06:31AM

17
#93 - Skywalker 666 / @MemeMasterXXI

04/23/2019 at 02:50PM

17
#94 - crazyminecuber / @crazyminecuber

04/24/2019 at 01:03PM

17
#95 - David McDonald / @dmcdona

05/15/2019 at 09:03PM

17
#96 - Lie Ryan / @lieryan

05/31/2019 at 09:45AM

17
#97 - Matt / @mcr05

07/04/2019 at 07:38AM

17
#98 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 05:53PM

17
#99 - Isaak Meier / @IsaakMeier

08/13/2019 at 05:13PM

17
#100 - Anand Magaji / @Anhedonix

08/24/2019 at 02:06AM

18
#101 - BaffaloP 🐃🎨 / @bbaffalopp

04/22/2019 at 08:56PM

18
#102 - BenL / @BenL86660733

04/26/2019 at 12:10PM

18
#103 - 🐄 / @cow_emoji

04/26/2019 at 03:18PM

18
#104 - seul / @seul15987381

05/30/2019 at 04:33AM

18
#105 - Corey Alexander / @coreyja_dev

06/27/2019 at 03:07AM

18
#106 - Test Account / @testycc

06/29/2019 at 01:57PM

18
#107 - Rohit Kumar Jena / @rohitrango

06/30/2019 at 10:24AM

18
#108 - André Reigoto / @AndreReigoto

08/11/2019 at 03:40AM

18
#109 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:52PM

18
#110 - Jonathan Eidsness / @jonathaneidsnes

09/22/2019 at 01:59PM

18
#111 - lucca augusto / @LuccaAugusto6

10/26/2019 at 10:46AM

18
#112 - trafficone / @trafficone

10/31/2019 at 09:07PM

19
#113 - Sean Sullivan / @_seanyneutron

07/11/2019 at 07:26PM

19
#114 - vicver09 / @vicver091

10/28/2019 at 06:46PM

19
#115 - TimMcGuire / @mcguire

11/04/2019 at 05:15PM

20
#116 - Bruce Woodward / @b00ffer

04/21/2019 at 06:57AM

20
#117 - Thilan Tran / @ThilanTran

04/21/2019 at 07:13PM

20
#118 - Fredrik Bjerkås / @fbjerkas

04/21/2019 at 08:51PM

20
#119 - Roman Vrublevskiy / @R0manza

04/22/2019 at 08:31PM

21
#120 - Benoit Benoit / @Benoit_Tgt

04/19/2019 at 02:14PM