Bug 1695 - color-vim won't colorize in an xterm
Summary: color-vim won't colorize in an xterm
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: vim
Version: 5.2
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Mike Maher
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-03-23 18:36 UTC by Steve Wills
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-03-23 22:24:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Steve Wills 1999-03-23 18:36:41 UTC
color-vim refuses to colorize if TERM is set to xterm. It
will only do so if TERM is set to rxvt. Since rxvt now sets
it TERM to xterm (which is a good thing, IMHO), I think
color-vim should colorize when TERM is set to xterm. As it
is now, I have to have this in my .vimrc:

if &term=="xterm"
     set term=rxvt
     set t_Co=8
     set t_Sb=^[4%dm
     set t_Sf=^[3%dm
endif

(In addition to these lines, which enable the colorizing:
syntax on
set nocompatible
)

I know this is the case in 5.2, it probably applies to 5.9
as well.

Comment 1 Bill Nottingham 1999-03-23 19:03:59 UTC
color-vim uses ncurses. The default terminfo entry for
xterm says it doesn't support color, so color-vim believes it.

Comment 2 David Lawrence 1999-03-23 19:07:59 UTC
I was unable to replicate this problem using vim-color-5.3-3. I set
the TERM to several choices such as xterm and rxvt with no change.

Comment 3 David Lawrence 1999-03-23 19:18:59 UTC
There is a setting that has to be added to .vimrc for this to work
regardless of TERM type which should not have to be done according to
Steve and Bill. This is more of a change request.

Comment 4 Mike Maher 1999-03-23 22:24:59 UTC
vimrc file fixed.
this may be a terminfo problem with ncurses.
a regular xterm does work with colorvim.


Note You need to log in before you can comment on or make changes to this bug.