openbsd-ports/textproc/p5-Text-Autoformat/files/dot.vimrc
naddy 4a5473494f * update to 1.11
* add emacs and vi dot file examples
* by new maintainer Han Boetes <han@linux-mandrake.com>
2003-05-15 06:19:41 +00:00

12 lines
710 B
Plaintext

" 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 <C-K> <esc> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
nmap <C-K> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
vmap <C-K> !G perl -MText::Autoformat -e "{autoformat{justify=>'full'};}"<cr>
imap <C-N> <esc> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>
nmap <C-N> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>
vmap <C-N> !G perl -MText::Autoformat -e "{autoformat{all=>1,justify=>'full'};}"<cr>