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

Re: editor settings



On Thursday, December 15 at 02:18 PM, quoth Jason Helfman:
Thank you. I've done something like this similarly, however this still
doesn't touch on what I am asking.

Suppose typing a new message. You have to go back and re-word a line and it
ends up being shorter then 78 characters. You then need to shift all your
lines in your paragraph/message to line up to what looks presentable to
send.

I hope this is more clear?

You're asking for auto-wrap. This is achieved by adding the character "a" to the vim formatoptions (or fo) variable. This, however, can be kinda irritating without something like restricting auto-wrap to lines that end in a space (i.e. adding "w" to formatoptions).

You can do this like so:

   set fo+=aw

Whether you do that in mutt's editor variable, or if you do that as an autohook in your vimrc, or whatever. :)

~Kyle
--
I prefer to be called "EVIL GENIUS!"
                                         -- Jumba, from "Lilo & Stitch"

Attachment: pgpFzWmJR7kYw.pgp
Description: PGP signature