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):
15
#61 - hielke / @hielke24840788

06/28/2019 at 09:52PM

15
#62 - Epecb / @BceEpecb

06/30/2019 at 04:31PM

15
#63 - garry quested / @GQuested

07/05/2019 at 09:49PM

15
#64 - ^spew$ / @spew79241369

07/15/2019 at 09:04AM

15
#65 - Chester Yap / @Chest_ErYap

07/27/2019 at 01:15PM

15
#66 - Bob Ren / @bobrenjc93

08/01/2019 at 04:30PM

15
#67 - Jonathan Browning / @yungjig90

08/02/2019 at 06:00PM

15
#68 - XiaoXiaoLui / @XiaoXiaoLui1

08/15/2019 at 03:43PM

15
#69 - theBecwar / @thebecwar

08/18/2019 at 05:37PM

15
#70 - Adam Hartz / @awareofnow

08/21/2019 at 02:56AM

15
#71 - Алексей Кашуба / @Alex_Kashuba

09/14/2019 at 10:43PM

15
#72 - Miko / @_m_ik_o_

09/26/2019 at 03:38PM

16
#73 - Tinko Minko / @tandikula

04/19/2019 at 05:28PM

16
#74 - jirgn / @jirgn

04/20/2019 at 05:36PM

16
#75 - Valacar / @valacar

04/20/2019 at 10:12PM

16
#76 - Gitsnik / @dracyrys

04/21/2019 at 12:03PM

16
#77 - Norbert / @mullno

04/22/2019 at 07:47PM

16
#78 - rg thomas / @rgt47

04/24/2019 at 02:13PM

16
#79 - Roger Stoltz / @rogsto1

04/24/2019 at 08:15PM

16
#80 - Kai.Li / @KaiLi19

04/27/2019 at 06:13AM

16
#81 - Amado Antonini / @AmadoAntonini

05/10/2019 at 11:23AM

16
#82 - Vitaly Sinilin / @unterwulf

05/17/2019 at 03:15PM

16
#83 - Leiser Fernández / @leiserfg

05/19/2019 at 04:46PM

16
#84 - Henry Wang (theKidOfArcrania) / @kidOfArcrania

05/24/2019 at 08:01PM

16
#85 - mkaminaga / @mkmng3

06/01/2019 at 06:31AM

17
#86 - Skywalker 666 / @MemeMasterXXI

04/23/2019 at 02:50PM

17
#87 - crazyminecuber / @crazyminecuber

04/24/2019 at 01:03PM

17
#88 - David McDonald / @dmcdona

05/15/2019 at 09:03PM

17
#89 - Lie Ryan / @lieryan

05/31/2019 at 09:45AM

17
#90 - Matt / @mcr05

07/04/2019 at 07:38AM