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


in reply to How to write out a Perl script and run it in as few keystrokes as possible.

lots of options. I usually use a vim mapping like shown by tobyink, or another terminal window (or another gnu screen window), and sometimes I just put vim into the background with ctrl-z, type the command, and get back to vim after it.
and as soon as you have to edit more files I can recommend vim tabs. you might also want to check out some plugins on vim.org.