http://www.perlmonks.org?node_id=995521


in reply to Re^2: How to write out a Perl script and run it in as few keystrokes as possible.
in thread How to write out a Perl script and run it in as few keystrokes as possible.

I think that your single window method is also going to be 9 keystrokes because you will need 2 up-arrows to get back to vim once you have run your script.

When given the choice I prefer to use a GUI editor, nedit, and I have set up my window manager so that focus follows the mouse without the need to click in a window. I also use emacs-style command history navigation as I was an Emacs user on Pr1mos long before I ever saw vi so am more familiar with it. My process is as follows:-

I make that 5 keystrokes and 2 wrist twitches.

Cheers,

JohnGG

  • Comment on Re^3: How to write out a Perl script and run it in as few keystrokes as possible.

Replies are listed 'Best First'.
Re^4: How to write out a Perl script and run it in as few keystrokes as possible.
by tobyink (Canon) on Sep 25, 2012 at 17:02 UTC

    nedit used to be my text editor of choice. I now prefer SciTE; it has more reliable Perl syntax highlighting (I often found nedit couldn't find the end of a string or regexp) and an integrated panel for displaying shell output, so if I'm editing a Perl script, I just need to save it and hit F5 to show the output at the bottom of my editing screen.

    My only slight gripe is that the regular expression engine used by SciTE's search and replace is not quite as advanced as nedit's. But I can always copy and paste into a nedit window for advanced search and replace. (Or just run Perl or sed over the file.)

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'