There are a lot of threads pertaining to how to configure Vim/GVim for Perl development on PerlMonks.org. My purpose in posting this question is to try to create, as much as pos
From chromatic's blog (slightly adapted to be able to use the same mapping from all modes).
vmap ,pt :!perltidy
nmap ,pt :%! perltidy
hit ,pt
in normal mode to clean up the whole file, or in visual mode to clean up the selection. You could also add:
imap ,pt :%! perltidy
But using commands from input mode is not recommended.