http://qs1969.pair.com?node_id=516771


in reply to Re: Perl Best Practices PerlTidy
in thread Perl Best Practices PerlTidy

... and the following will cause vim to autoformat the current buffer with perltidy when you hit F4.
To be put in your .vimrc

map <F4> !perltidy -q<CR>