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

144 active golfers, 714 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 - Miłosz Łakomy / @foobar01123

05/26/2019 at 05:13AM

14
#18 - Seunghun Lee / @earlbread

05/26/2019 at 03:34PM

14
#19 - throw away / @f44lyf

05/29/2019 at 10:12PM

14
#20 - Jonáš Šerých / @serycjon

06/03/2019 at 04:35PM

14
#21 - Sæther / @baltre1

06/07/2019 at 12:01PM

14
#22 - Sondre Lunde / @SondreSL

06/07/2019 at 12:02PM

14
#23 - Fernando Motta / @Fmmotta01

06/07/2019 at 12:46PM

14
#24 - Eirik Furuseth / @heplaphon

06/07/2019 at 03:24PM

14
#25 - BunFluffman / @BFluffman

06/07/2019 at 04:42PM

14
#26 - Tim Dean / @Tmdean

06/10/2019 at 07:53PM

14
#27 - Alexey Vyskubov / @avysk

06/13/2019 at 02:25PM

14
#28 - majo senf / @majo_senf

06/14/2019 at 10:31AM

14
#29 - Philip / @vCoRezZ

06/14/2019 at 08:33PM

14
#30 - Filipe Brandenburger / @filbranden

07/08/2019 at 01:08AM