Am 2005-12-15 23:26 +0100 schrieb Patrick Ben Koetter:
>
> Let's see. I am not the vim configuration professional I wish I was, but I
> have this in my .vimrc:
I use perl for that. In my .vimrc I have
" This is really kewl for textformating, But you have to install
Text::Autoformat.
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-L> <esc> !G perl -MText::Autoformat -e
"{autoformat{all=>1,justify=>'full'};}"<cr>
nmap <C-L> !G perl -MText::Autoformat -e
"{autoformat{all=>1,justify=>'full'};}"<cr>
vmap <C-L> !G perl -MText::Autoformat -e
"{autoformat{all=>1,justify=>'full'};}"<cr>
(argh, six lines, how do I switch of linebreking in vim temporarily ;))
C-k adjusts a whole paragraph then. I never used it for my own
paragraphs, only for others while quoting but it should do the job.
K
--
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF
Attachment:
pgppz967lKmYh.pgp
Description: PGP signature