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 136 remaining solutions by signing in and submitting your own entry
#137 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_

137 active golfers, 661 entries

Leaderboard (lowest score wins):
18
#91 - BenL / @BenL86660733

04/26/2019 at 12:10PM

18
#92 - 🐄 / @cow_emoji

04/26/2019 at 03:18PM

18
#93 - seul / @seul15987381

05/30/2019 at 04:33AM

18
#94 - Corey Alexander / @coreyja_dev

06/27/2019 at 03:07AM

18
#95 - Test Account / @testycc

06/29/2019 at 01:57PM

18
#96 - Rohit Kumar Jena / @rohitrango

06/30/2019 at 10:24AM

18
#97 - André Reigoto / @AndreReigoto

08/11/2019 at 03:40AM

18
#98 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:52PM

19
#99 - Sean Sullivan / @_seanyneutron

07/11/2019 at 07:26PM

20
#100 - Bruce Woodward / @b00ffer

04/21/2019 at 06:57AM

20
#101 - Thilan Tran / @ThilanTran

04/21/2019 at 07:13PM

20
#102 - Fredrik Bjerkås / @fbjerkas

04/21/2019 at 08:51PM

20
#103 - Roman Vrublevskiy / @R0manza

04/22/2019 at 08:31PM

21
#104 - Benoit Benoit / @Benoit_Tgt

04/19/2019 at 02:14PM

21
#105 - 김형창 / @uVmEMZsCgcYvqZi

04/24/2019 at 09:20AM

21
#106 - Madelyn Freed / @EcoBummer

09/04/2019 at 08:04PM

22
#107 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

04/19/2019 at 02:01PM

22
#108 - Tucker Hayden / @TuckNRollio

04/19/2019 at 06:25PM

22
#109 - Takayuki Sato / @yukitaka1974

06/30/2019 at 02:41PM

22
#110 - Scott Schlesier / @sschlesier

07/23/2019 at 12:29AM

23
#111 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 10:44AM

23
#112 - Sherab Giovannini / @shaddycls

05/18/2019 at 05:38PM

23
#113 - Jan Wedekind / @wedesoft

05/30/2019 at 08:22PM

23
#114 - Jess / @Jess74311450

06/27/2019 at 05:35PM

24
#115 - 김현수 / @flyhigh43

04/27/2019 at 04:34PM

25
#116 - Koo Zhengqun / @zhengqunkoo

05/04/2019 at 05:25AM

26
#117 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 02:01PM

27
#118 - James Stidard / @JamesStidard

05/05/2019 at 10:46PM

27
#119 - Francois Urquhart / @LostUrquhart

05/13/2019 at 08:34PM

28
#120 - Sam Miller / @sam_miller93

04/28/2019 at 01:33PM