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

132 active golfers, 629 entries

Leaderboard (lowest score wins):
14
#31 - Nathan Knox / @the_nathan_knox

07/10/2019 at 08:51PM

14
#32 - Peter Demin / @peterdemin

07/12/2019 at 08:06PM

14
#33 - Neil Struthers / @struthersneil

07/15/2019 at 05:19PM

14
#34 - Rasmus Öhman Bruno / @rasmohman

07/22/2019 at 08:22PM

14
#35 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 02:53PM

14
#36 - matt.boyer / @mattboy54261877

07/27/2019 at 10:38PM

14
#37 - Markus / @ARealAnnoyance

07/29/2019 at 12:37PM

14
#38 - りんご / @ringo9971

08/06/2019 at 09:49AM

14
#39 - Ron Holt / @ron_holt

08/06/2019 at 11:19PM

14
#40 - sooqua / @sooqua

08/08/2019 at 10:56AM

14
#41 - Martin Delille / @martinodelilo

08/22/2019 at 11:47AM

14
#42 - Oleg Skillup / @skill_up

08/24/2019 at 11:16AM

14
#43 - Marco Mannucci / @markomannux

08/24/2019 at 09:29PM

15
#44 - Jon Krause / @jkrause314

04/19/2019 at 03:01PM

15
#45 - Darren Weston / @dazWestonUK

04/19/2019 at 08:07PM

15
#46 - Petro Тrouq / @zulolosi

04/21/2019 at 06:47PM

15
#47 - Raul / @Raul50174499

04/23/2019 at 05:05AM

15
#48 - Daniel Steinberg / @dstein64

04/27/2019 at 04:02PM

15
#49 - Roger Bongers / @RogerBongers

04/28/2019 at 02:53PM

15
#50 - tllilleh / @tllilleh

05/14/2019 at 09:29PM

15
#51 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:28AM

15
#52 - Arno / @arnoxmp

05/16/2019 at 09:27AM

15
#53 - heppen / @heppen_He

05/23/2019 at 10:38AM

15
#54 - deurzen / @devrzen

06/08/2019 at 03:49PM

15
#55 - A / @777Android777

06/20/2019 at 08:13PM

15
#56 - hielke / @hielke24840788

06/28/2019 at 09:52PM

15
#57 - Epecb / @BceEpecb

06/30/2019 at 04:31PM

15
#58 - garry quested / @GQuested

07/05/2019 at 09:49PM

15
#59 - ^spew$ / @spew79241369

07/15/2019 at 09:04AM

15
#60 - Chester Yap / @Chest_ErYap

07/27/2019 at 01:15PM