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

Re: [users] Mail from OE to linux--Thanks!



On Tue, Jul 10, 2001 at 01:49:43PM -0500, will trillich wrote:
| On Tue, Jul 10, 2001 at 09:34:48AM -0400, D-Man wrote:
| > On Mon, Jul 09, 2001 at 05:32:55PM -0700, pmackinney@home.com wrote:
| > | Thanks to all who replied. Your sapient advice has gotten me up and
| > | running. This reply is being composed in mutt, somehow it seems to 
| > | have known to use vim as the editor and I'm not complaining.
| > 
| > It is probably in your $EDITOR or $VISUAL environment variable.  You
| > can specify the editor in the .muttrc like (a couple related options
| > shown too):
| > 
| >     set editor=vim
| 
| or even
| 
| 	set editor="vim +/^Subject: -c 'set ft=mail tw=64'"
                                    ^^^^^^^^^^^^^^^^^^^^^
I like doing that in my .vimrc,  ex :

    augroup Mail
        au!
        au FileType mail set tw=64
    augroup END

vim knows when it is editing mail and when it isn't (you don't need to
set the filetype manually) :-).

What does the "+/^Subject:" argument do for you (I read the help part
so I know what vim does with it)?  The first line of the buffer for me
(for this message) is
        On Tue, Jul 10, 2001 at 01:49:43PM -0500, will trillich wrote:
and the buffer only contains the body of the message.


Hmm,  I just had an idea : maybe you have "vim-tiny" installed which
doesn't have file-type detection and syntax highlighting builtin?

-D



Reply to: