in reply to Re: 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 would think that would actually increase the number of keystrokes needed by one:
(UP)vim filename.pl(ENTER) (2 keystrokes)
(make changes) (0 keystrokes)
:wq(ENTER) (4 keystrokes) *
(UP)(UP)perl -Wall filename.pl(ENTER) (3 keystrokes)
GOTO Start
(edit .pl file in vim, window1) (0 keystrokes)
:w(ENTER) (3 keystrokes) *
Alt-Tab to window2 (2 keystrokes)
(UP)perl -Wall filename.pl(ENTER) (2 keystrokes)
Alt-Tab back to window1 (2 keystrokes)
GOTO Start
Original Process
Start:(UP)vim filename.pl(ENTER) (2 keystrokes)
(make changes) (0 keystrokes)
:wq(ENTER) (4 keystrokes) *
(UP)(UP)perl -Wall filename.pl(ENTER) (3 keystrokes)
GOTO Start
Total: 8 keystrokes
Two-Window Process
Start:(edit .pl file in vim, window1) (0 keystrokes)
:w(ENTER) (3 keystrokes) *
Alt-Tab to window2 (2 keystrokes)
(UP)perl -Wall filename.pl(ENTER) (2 keystrokes)
Alt-Tab back to window1 (2 keystrokes)
GOTO Start
Total: 9 keystrokes
* : only counts as one keystroke because in my .vimrc I have ; mapped to : and vice-versa so I don't need to press the Shift key
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to write out a Perl script and run it in as few keystrokes as possible.
by tinita (Parson) on Sep 24, 2012 at 23:28 UTC | |
Re^3: How to write out a Perl script and run it in as few keystrokes as possible.
by dsheroh (Monsignor) on Sep 25, 2012 at 09:34 UTC | |
Re^3: How to write out a Perl script and run it in as few keystrokes as possible.
by johngg (Canon) on Sep 25, 2012 at 10:11 UTC | |
by tobyink (Canon) on Sep 25, 2012 at 17:02 UTC |
In Section
Seekers of Perl Wisdom