On 2012-01-22, Steve wrote:
> >     :verbose set ft?
> > 
> > report?
> 
> 
> Sorry, when replying :
> 
> filetype=mail

I did some experimenting to try to find a simple configuration that
you could execute from within mutt that would demonstrate what Vim's
coloring _should_ look like, with the idea that that would be a
starting place from which we could determine the problem you're
having.  I _think_ I see the problem.

In mutt, I executed this:

    :set editor="vim -N -u NONE --cmd 'set rtp=/usr/local/share/vim/vim73' 
--cmd 'syntax on'"

where 'rtp' is being set to the value of $VIMRUNTIME on my system.
Then I replied to a message.  I see odd quoting levels colored blue
and even quoting levels colored cyan.  If I then execute

    :set bg=dark

('bg' was originally "light"), I see all quoting levels colored
cyan.  Executing

    :hi

shows this (edited):

    Comment        xxx term=bold cterm=bold ctermfg=6 guifg=#80a0ff
    ...
    Identifier     xxx term=underline cterm=bold ctermfg=6 guifg=#40ffff
    ...
    mailQuoted2    xxx links to Identifier
    mailQuoted1    xxx links to Comment

So depending on the value of 'bg' ('background') on your system, and
your colorscheme, you may indeed see all quoting levels the same
color.

I also discovered that I had forgotten how much I had tweaked Vim's
syntax coloring for mail to make it more like mutt's.  I've attached
my ~/.vim/after/systax/mail.vim file which you may want to try to
see if you like either of its two color schemes better than Vim's
default.  This means I was wrong about Vim "just working" in this
regard and I should not have jumped so quickly to the conclusion
that there was something wrong with your setup.

Regards,
Gary

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
" Vim after syntax file
" Language:     Mail file
" Maintainer:   Gary Johnson <garyjohn AT spocom DOT com>
" Last Change:  2011-06-30 22:49:28

" Override the settings in syntax/mail.vim to color the quoted sections as
" they were colored by 'tin' or by 'mutt's pager, not as the e-mail being
" composed will appear when read later.  I found this less confusing, even
" though both the reply text and the material being replied to have normal
" coloring.

" The default coloring of quote levels by syntax/mail.vim has a period of
" 2--colors alternate between Comment (blue) and Identifier (cyan).  The
" coloring used by 'mutt' and 'tin' have a higher period--3, I think--which I
" like better and is used here.

if !exists("g:mail_syntax_type")
    let g:mail_syntax_type = 2
endif

if g:mail_syntax_type == 0
    " Use the default.

    finish

elseif g:mail_syntax_type ==1
    " Use my original modifications.

    hi! link mailHeaderKey      Statement
    hi! link mailHeader         Type
    hi! link mailSubject        Statement
    hi! link mailEmail          Statement
    hi! link mailQuoted1        NONE
    hi! link mailQuoted2        Type
    hi! link mailQuoted3        Statement
    hi! link mailQuoted4        Comment
    hi! link mailQuoted5        mailQuoted2
    hi! link mailQuoted6        mailQuoted3
    hi! link mailSignature      Comment

else
    " Use the 'mutt' colors, but as the recipient will see my reply, not as I
    " see the original.  This is a compromise that keeps the color pallet of
    " my original scheme but colors the text of the message to which I'm
    " replying instead of keeping it normal.

    hi! link mailHeaderKey      Statement
    hi! link mailHeader         Type
    hi! link mailSubject        Statement
    hi! link mailEmail          Statement
    hi! link mailQuoted1        Type
    hi! link mailQuoted2        Statement
    hi! link mailQuoted3        Comment
    hi! link mailQuoted4        mailQuoted1
    hi! link mailQuoted5        mailQuoted2
    hi! link mailQuoted6        mailQuoted3
    hi! link mailSignature      Comment

endif

Reply via email to