in reply to
How to write out a Perl script and run it in as few keystrokes as possible.
While not an answer to what you asked specifically, something I do, that I think you would enjoy, is allow vi-like editing from the bash prompt, so that I can move around and look through my history without using the (dreaded) arrow keys. (wow that sentence was long)
from the bash prompt:
set -o vi
or to set this option to automatically load when you start your termin
cd ~ && echo 'set -o vi' >> .bashrc && echo "success\n"
I love being able to use vi commands from the bash prompt, and I think you will, too.