" Add these lines to your .vimrc and you will be happy with " p5-Text-Autoformat. Use ctrl-k to reformat a paragraph and ctrl-n to " reformat all text from the cursor. imap !G perl -MText::Autoformat -e "{autoformat;}" nmap !G perl -MText::Autoformat -e "{autoformat;}" vmap !G perl -MText::Autoformat -e "{autoformat;}" imap !G perl -MText::Autoformat -e "{autoformat{all=>1};}" nmap !G perl -MText::Autoformat -e "{autoformat{all=>1};}" vmap !G perl -MText::Autoformat -e "{autoformat{all=>1};}"