[Bug 848] New: background color autodetection in vim doesn't work.

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Fri Jun 11 01:10:38 PDT 2004


http://bugs.linuxfromscratch.org/show_bug.cgi?id=848

           Summary: background color autodetection in vim doesn't work.
           Product: Linux From Scratch
           Version: CVS
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: Book
        AssignedTo: lfs-book at linuxfromscratch.org
        ReportedBy: alexander at linuxfromscratch.org
         QAContact: lfs-book at linuxfromscratch.org


Jeremy Utley says that the

set background=dark

statement is needed in /etc/vimrc. He explains the need for such a statement in
the following way. Without this, the color for comments is deep blue, almost
unreadable on Linux console, and with this option it is light-blue, well readable.

I agree that deep blue is unreadable on Linux console. I don't agree that
comments are deep blue by default on Linux console. They become such when I
explicitly set bg=light. I don't have any "set background" statement in /etc/vimrc.

Moreover, I can point to the source lines where the background color
autodetection is supposed to happen: vim63/src/option.c, lines 2964 -- 3003. 

The logic is: terminals with TERM=linux have dark background, everything else
has light background.

However, Jeremy confirmed that on his Linux console TERM=linux and vim still
thinks that the background is light.

Since these source lines don't work for Jeremy Utley and James Iwanek (LFS
5.1-pre), but work for me (LFS built in December 2003 according to NPTL hint,
but with upgraded vim), it's a bug in the book.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.



More information about the lfs-book mailing list