Re: vim: available colors?

From: Derrick 'dman' Hudson (dman_at_dman13.dyndns.org)
Date: 09/30/03

  • Next message: Ron Johnson: "Re: Debian Desktop for a Joe Average"
    Date: Tue, 30 Sep 2003 12:42:07 -0400
    To: debian-user@lists.debian.org
    
    
    

    On Tue, Sep 30, 2003 at 03:04:22PM +0000, Monique Y. Herman wrote:
    | On Tue, 30 Sep 2003 08:49:58 +0100, Colin Watson <cjwatson@debian.org> penned:
    | > On Tue, Sep 30, 2003 at 03:10:00AM +0000, Monique Y. Herman wrote:
    | >> I'm mucking with syntax highlighting in vim (specifically, I like dark
    | >> backgrounds, but the red (for strings) and the blue (for comments) are
    | >> almost impossible for me to read).
    | >
    | > Have you tried ':set background=dark'? That's usually a quick way to get
    | > readable colours.

    | My background is black as night -- blacker, actually.

    In that case, you need to put "set background=dark" in your vimrc to
    correct the problem. The thing is, vim has no way of knowing whether
    your terminal (or xterm) has a white or black background. Since xterm
    and gvim default to a white background, vim defaults to assuming you
    have a white background. Thus the colors used for highlighting are
    somewhat dark, to contrast with the white background. Setting
    'bg=dark' in vim doesn't change your background, but rather tells vim
    that your background is dark so that it will use lighter colors which
    contrast with the dark background (but are impossible to read on a
    white background).

    (type ":help background" in vim)

    -D

    -- 
    What good is it for a man to gain the whole world, yet forfeit his
    soul?  Or what can a man give in exchange for his soul?
            Mark 8:36-37
     
    http://dman13.dyndns.org/~dman/
    
    

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    


  • Next message: Ron Johnson: "Re: Debian Desktop for a Joe Average"

    Relevant Pages

    • Re: vim: available colors?
      ... >>I'm mucking with syntax highlighting in vim (specifically, I like dark ... > readable colours. ...
      (Debian-User)
    • Re: vim: available colors?
      ... >> I'm mucking with syntax highlighting in vim (specifically, I like dark ... > readable colours. ...
      (Debian-User)
    • Re: vim: available colors?
      ... > I'm mucking with syntax highlighting in vim (specifically, I like dark ... Everything in vim seems to be customizable, ...
      (Debian-User)
    • Re: vim: available colors?
      ... > I'm mucking with syntax highlighting in vim (specifically, I like dark ...
      (Debian-User)
    • Re: vim: available colors?
      ... vim has no way of knowing whether ... > your terminal (or xterm) has a white or black background. ... > somewhat dark, to contrast with the white background. ... I want than the defaults, so whatever the original reason was, I guess ...
      (Debian-User)