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

89 active golfers, 424 entries

Leaderboard (lowest score wins):
18
#61 - 🐄 / @cow_emoji

04/26/2019 at 03:18PM

18
#62 - seul / @seul15987381

05/30/2019 at 04:33AM

20
#63 - Bruce Woodward / @b00ffer

04/21/2019 at 06:57AM

20
#64 - Thilan Tran / @ThilanTran

04/21/2019 at 07:13PM

20
#65 - Fredrik Bjerkås / @fbjerkas

04/21/2019 at 08:51PM

20
#66 - Roman Vrublevskiy / @R0manza

04/22/2019 at 08:31PM

21
#67 - Benoit Benoit / @Benoit_Tgt

04/19/2019 at 02:14PM

21
#68 - 김형창 / @uVmEMZsCgcYvqZi

04/24/2019 at 09:20AM

22
#69 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

04/19/2019 at 02:01PM

22
#70 - Tucker Hayden / @TuckNRollio

04/19/2019 at 06:25PM

23
#71 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 10:44AM

23
#72 - Sherab Giovannini / @shaddycls

05/18/2019 at 05:38PM

23
#73 - Jan Wedekind / @wedesoft

05/30/2019 at 08:22PM

24
#74 - 김현수 / @flyhigh43

04/27/2019 at 04:34PM

25
#75 - Koo Zhengqun / @zhengqunkoo

05/04/2019 at 05:25AM

26
#76 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 02:01PM

27
#77 - James Stidard / @JamesStidard

05/05/2019 at 10:46PM

27
#78 - Francois Urquhart / @LostUrquhart

05/13/2019 at 08:34PM

28
#79 - Sam Miller / @sam_miller93

04/28/2019 at 01:33PM

28
#80 - Am Jam / @LoneJam

06/07/2019 at 01:09AM

32
#81 - Víctor López / @viticlick

04/24/2019 at 09:41AM

32
#82 - zenwalker / @zenwalker93

05/09/2019 at 01:35PM

32
#83 - Mat / @matpbo

05/12/2019 at 07:35PM

32
#84 - Caleb Rollins / @CalebRollins1

05/20/2019 at 06:37PM

32
#85 - vimgolfacct / @vimgolfacct

06/20/2019 at 02:38AM

34
#86 - noisevoid / @noisevoid

05/15/2019 at 08:19PM

37
#87 - Antwane Mason / @admason1413

04/26/2019 at 01:37AM

44
#88 - rhae / @amaceda

04/25/2019 at 03:14PM

50
#89 - Danny / @dannywood1976

05/07/2019 at 08:55AM