Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by johngg (Abbot)
on Sep 25, 2012 at 10:11 UTC ( #995521=note: print w/ replies, xml ) Need Help??


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:-

  • Start:
  • Edit script with nedit - (0 keystrokes)
  • Ctrl-S to save (2 keystrokes)
  • Move mouse over xterm window (1 wrist twitch)
  • Ctrl-P then Enter to re-run script (3 keystrokes)
  • Move mouse back to nedit window (1 wrist twitch)
  • GOTO Start

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.
Re^4: How to write out a Perl script and run it in as few keystrokes as possible.
by tobyink (Abbot) 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'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-08-22 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls