[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mutt and vim just will not play nice for me :-(



On Wed, Apr 03, 2002 at 08:08:39AM +0100, Patrick Kirk wrote:
> Hi all,
> 
> When I post from mutt, my mails are really ugly because I can't get it
> to text wrap.
> 
> In .vimrc I have the setting:
> au FileType mail set tw=70 fo=tcrq2 nomodeline
> 
> It was provided by wayne Topa.
> 
> In .muttrc I have this:
> set editor="vim -c 'set filetype=mail'" # Must wrap mail
> 
> Has anyone got this combo working right?  Because mutt won't wrap at
> all.

When I found out that wraping wasn't the default for filetype=mail I
chose the "simple, but stupid" way...

    set editor="vim --cmd 'set notitle' -c 'set ft=mail tw=72 expandtab noautoindent' +'/^-- $' +-"

But it works!

(Today's fortune is actually random...)
-- 
Karl E. Jørgensen
karl@jorgensen.com
www.karl.jorgensen.com
==== Today's fortune:
<joost> Do you mean to say that I can read mail with vi too? ;-)
<Joey> Didn't you know that?
<Joey> :r /var/spool/mail/jk
	-- debian-mentors

Attachment: pgpHoCUAOFdGM.pgp
Description: PGP signature


Reply to: