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

68 active golfers, 281 entries

Leaderboard (lowest score wins):
14
#1 - Saki Gw / @Sakigw

04/24/2019 at 02:43PM

14
#2 - Titouan Teyssier / @TitouanT_

04/24/2019 at 03:57PM

14
#3 - shredded / @shredded

04/24/2019 at 08:07PM

14
#4 - Grant / @grant_7788

04/25/2019 at 11:42AM

14
#5 - John Braxler / @braxler

04/25/2019 at 12:45PM

14
#6 - Sarah Luongo / @SarahLuongo3

04/26/2019 at 02:19AM

14
#7 - Dan Nestor / @dandrestor

04/26/2019 at 10:22AM

14
#8 - longB / @longB77353628

04/26/2019 at 10:49AM

14
#9 - ImaNotgate / @INotgate

04/28/2019 at 01:39AM

14
#10 - james_bunch / @james_bunch

04/30/2019 at 07:39PM

14
#11 - Smylers / @Smylers2

05/02/2019 at 10:11PM

14
#12 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 12:24AM

14
#13 - Fiffy / @sr21486642

05/07/2019 at 07:34AM

14
#14 - Paul Yates / @PYates77

05/08/2019 at 09:02PM

14
#15 - Ricardo / @log2tweet

05/09/2019 at 01:51PM

14
#16 - Damian Rodriguez / @damianrr

05/21/2019 at 02:24PM

14
#17 - Foo Bar / @foobar01123

05/26/2019 at 05:13AM

15
#18 - Jon Krause / @jkrause314

04/19/2019 at 03:01PM

15
#19 - Darren Weston / @dazWestonUK

04/19/2019 at 08:07PM

15
#20 - Petro Тrouq / @zulolosi

04/21/2019 at 06:47PM

15
#21 - Raul / @Raul50174499

04/23/2019 at 05:05AM

15
#22 - Daniel Steinberg / @dstein64

04/27/2019 at 04:02PM

15
#23 - Roger Bongers / @RogerBongers

04/28/2019 at 02:53PM

15
#24 - tllilleh / @tllilleh

05/14/2019 at 09:29PM

15
#25 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:28AM

15
#26 - Arno / @arnoxmp

05/16/2019 at 09:27AM

15
#27 - heppen / @heppen_He

05/23/2019 at 10:38AM

16
#28 - Tinko Minko / @tandikula

04/19/2019 at 05:28PM

16
#29 - jirgn / @jirgn

04/20/2019 at 05:36PM

16
#30 - Valacar / @valacar

04/20/2019 at 10:12PM