<<< Date Index >>>     <<< Thread Index >>>

Re: OT: column 72 in mutt with xterm && vim



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday, March 12 at 10:06 PM, quoth Dilip M:
> On Wed, Mar 12, 2008 at 5:29 PM, <cblists@xxxxxxxxxx> wrote:
>>> Does set ft=mail and sync=on activates it? 
>> Well, if it isn't done automatically, it should ;)
>
> I have set "set editor="/usr/bin/vim -c 'set fo=tcrq ft=mail ff=unix 
> tw=74'" in my ~/.muttrc.
>
> But still it is not automatic. I mean, when I reply to emails, I always to 
> visual selection and press q (I have alised it as 'q gq}'.

That's not what he meant by "automatic" - what he meant was that vim 
should know that the filetype (ft) is "mail" without you having to 
specify it.

BUT, if it helps, you *can* have vim automatically keep your lines to 
within 72 characters as you type. Add "a" to your fo, like so:

     set editor="vim -c 'set fo=tcrqa ft=mail ff=unix tw=74'"

~Kyle
- -- 
Hanging on to resentment is letting someone you despise live rent-free 
in your head.
                                                         -- Ann Landers
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkfYCNEACgkQBkIOoMqOI14E7ACg/S6pS7rlqqA5azO7Axek9/g9
1CkAoIaBPlBbD5oX5dbDgWO3r/pvx6xs
=gXJD
-----END PGP SIGNATURE-----