Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > dc74f6cae350f36a4a73123e99e289d4 > files > 8

perl-Text-Autoformat-1.04-9mdk.noarch.rpm

" 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>