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