in reply to How to write out a Perl script and run it in as few keystrokes as possible.
You can execute a shell command in vim using:
:!command
Vim substitutes % in the command for the currently edited file, thus the following can be used to run the current script (assuming it's chmodded correctly and has a shebang):
:!./%
Via .vimrc you can create a shortcut for that.
... or to create a shortcut which saves first, then runs:
command R w | !./%
And another (hey, TIMTOWTDI):
nmap <F5> :w<cr>:!./%<cr>
(which maps the F5 key to do the duty.)
|
|---|