color of quoted message while composing a message

This is a discussion on color of quoted message while composing a message within the Mutt forums in Other Technologies category; Hi, I have been trying to change the color of quoted text (beginning with > ) when I'm writing the reply using vim editor but so far without success. Colors change as they should when reading the message but nothing happens in compose mode. The default (dark) blue color of quoted text in reply is quite difficult to read so I think I'm not the first one trying to do this but reading the mutt documentation and searching with google did not provide any answers. Any help appreciated. regards, Olli...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-28-2008, 04:51 AM
Olli Lehtonen
Guest
 
Default color of quoted message while composing a message

Hi,

I have been trying to change the color of quoted text (beginning with
> ) when I'm writing the reply using vim editor but so far without

success. Colors change as they should when reading the message but
nothing happens in compose mode.

The default (dark) blue color of quoted text in reply is quite
difficult to read so I think I'm not the first one trying to do this
but reading the mutt documentation and searching with google did not
provide any answers.

Any help appreciated.

regards,

Olli

Reply With Quote
  #2  
Old 05-28-2008, 10:32 AM
Paul Walker
Guest
 
Default Re: color of quoted message while composing a message

On Wed, 28 May 2008 01:51:28 -0700 (PDT), Olli Lehtonen wrote:

> I have been trying to change the color of quoted text (beginning with )
>> when I'm writing the reply using vim editor but so far without

> success. Colors change as they should when reading the message but
> nothing happens in compose mode.


I think I must be misunderstanding, but it sounds like you're trying to
alter the colours vim uses for composing a reply by changing settings in
mutt. Is that really what you're trying to do, or did I miss something?

Cheers,

--
Paul
Reply With Quote
  #3  
Old 05-28-2008, 01:22 PM
Troy Piggins
Guest
 
Default Re: color of quoted message while composing a message

* Olli Lehtonen wrote:
>
> I have been trying to change the color of quoted text (beginning
> with > ) when I'm writing the reply using vim editor but so far
> without success. Colors change as they should when reading the
> message but nothing happens in compose mode.


Where are you changing the settings? In mutt's settings or vim's
settings? You should be changing it in vim's settings of course.

> The default (dark) blue color of quoted text in reply is quite
> difficult to read so I think I'm not the first one trying to do this
> but reading the mutt documentation and searching with google did not
> provide any answers.


That's because you should be searching vim documentation.

With my setup, the colours are set in
~/.vim/after/syntax/mail.vim :

hi mailQuoted1 ctermfg=10
hi mailQuoted2 ctermfg=2
hi mailQuoted3 ctermfg=28
hi mailQuoted4 ctermfg=28
hi mailQuoted5 ctermfg=28
hi mailQuoted6 ctermfg=28

--
Troy Piggins | http://piggo.com/~troy _ /|/
|\__/ Oo,
( \\ D
Mutt 1.5.18 (with rr.compressed & vvv.nntp patches) L\-\L`\/|
Reply With Quote
  #4  
Old 05-29-2008, 01:47 AM
Gary Johnson
Guest
 
Default Re: color of quoted message while composing a message

Olli Lehtonen <olli.lehtonen@helsinki.fi> wrote:
> Hi,
>
> I have been trying to change the color of quoted text (beginning with
>> ) when I'm writing the reply using vim editor but so far without

> success. Colors change as they should when reading the message but
> nothing happens in compose mode.
>
> The default (dark) blue color of quoted text in reply is quite
> difficult to read so I think I'm not the first one trying to do this
> but reading the mutt documentation and searching with google did not
> provide any answers.


In addition to what others have written, the solution to this may depend
on the type of terminal you're using and the number of colors it
supports. I also found the blue used by all my text-mode/curses
applications running in xterms too dark to read against the black
background I normally use. I played with the definition of xterm's blue
in my ~/.Xdefaults file until I found one that was visible when used as a
foreground against a black background as well as when used as a
background behind a white or light gray foreground.

Here are the relevant lines from my ~/.Xdefaults file:

XTerm*VT100*color4: #008fff
XTerm*VT100*color12: #008fff
! ! Now that I'm using an LCD, I
! ! like this blue better than
! ! #70a0ff, which is now a little
! ! light.

When I switched from a CRT to an LCD monitor, I found I had to tweak the
colors a bit.

I know it probably doesn't make sense to use the same blue for both
color4 and color12, but these definitions and my selection of colors in
various terminal applications have evolved from me knowing nothing about
xterm colors and barely getting color to work at all on an HP-UX system
that previously had no color terminals to the point now where everything
looks the way I want it to, and I haven't taken the time to go back and
redo everything right.

--
Gary Johnson
Reply With Quote
  #5  
Old 05-29-2008, 04:55 AM
Olli Lehtonen
Guest
 
Default Re: color of quoted message while composing a message

Thank you for your advice.

I was not familiar with syntax definitions of vim and I thought that
vim somehow (?) reads the mutt's color definitions. Now it makes much
more sense. Someone using vim had obviously had the same problem as
setting

set background=dark

in .vimrc redefines all colors so that they are much more easier to
read with black terminal background.

Thanks,

Olli

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:50 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.