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

142 active golfers, 692 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

14
#44 - Zach Ingbretsen / @ZIngbretsen

09/10/2019 at 01:06AM

14
#45 - Cassandra / @kascein

09/17/2019 at 03:44PM

14
#46 - vimgolfer / @vimgolfer7

09/21/2019 at 06:17PM

14
#47 - Abner jr / @Abnerjr19

09/23/2019 at 02:31PM

14
#48 - Viktor Styrud / @Visklol

09/25/2019 at 02:09PM

15
#49 - Jon Krause / @jkrause314

04/19/2019 at 03:01PM

15
#50 - Darren Weston / @dazWestonUK

04/19/2019 at 08:07PM

15
#51 - Petro Тrouq / @zulolosi

04/21/2019 at 06:47PM

15
#52 - Raul / @Raul50174499

04/23/2019 at 05:05AM

15
#53 - Daniel Steinberg / @dstein64

04/27/2019 at 04:02PM

15
#54 - Roger Bongers / @RogerBongers

04/28/2019 at 02:53PM

15
#55 - tllilleh / @tllilleh

05/14/2019 at 09:29PM

15
#56 - Daniel Hakimian / @danrafhak

05/15/2019 at 04:28AM

15
#57 - Arno / @arnoxmp

05/16/2019 at 09:27AM

15
#58 - heppen / @heppen_He

05/23/2019 at 10:38AM

15
#59 - deurzen / @devrzen

06/08/2019 at 03:49PM

15
#60 - A / @777Android777

06/20/2019 at 08:13PM