On Mon, 3 Jan 2011, Alessandro Antonello wrote:
Hi,
When I am trying to use any color in vim all I am getting is the
color
changing as per the scheme but only till the text in the line. Rest
of
the line is still white.
Can anyone please help me in this.
OS: 10.6.5 (Mac OS X)
vi: 7.2.108
Apple terminal: 2.1.1
Hi,
That happens with me too. I have the same version of Mac OS X and Vim
(for terminal only). For GUI I use MacVim that works fine. In
terminal, Vim uses the default background of the terminal when there
is no "text" in a line. Only where there is some text, Vim uses the
background color defined in the colorscheme script.
This happens only on Mac. On Windows (XP) all background is printed
using the color defined in the colorscheme script when I use the
terminal version. Even when I am working in the Cygwin, with the
standard shell or mintty, the background is colored accordingly. But
doesn't on Mac. This is an odd behavior. So, I always use the default
colorscheme when I am working in the Mac shell Vim.
This might be something wrong in the termcap/terminfo information.
If
:set t_ut?
shows 't_ut=y' try:
:set t_ut=
or vice versa.
Essentially t_ut means that in order to erase a character, a program is
supposed to color text with the current background color. Depending on
the terminal emulator, there might be an explicit 'clear' command, so
painting with the current background color would just color things
incorrectly.
I think there may also be an attribute that affects the "background
color on lines longer than the screen width" problem, but I'm not sure
what it is. Maybe one of t_cd (clear to end of screen) or t_ce (clear
to end of line) is incorrect. (But they're not as easy to debug as t_ut
since they're not binary.)
--
Best,
Ben
--
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