Kamaraju S Kusumanchi wrote:
A.J.Mechelynck wrote:

Kamaraju S Kusumanchi wrote:
consider

$ cat file.c
/* kamaraju
 * kamaraju
 * kamaraju
 */
kamaraju

I use konsole with black background and white foreground  on Debian Etch,
vim 7.0.122

$ cat .vimrc
set hls
syn enable

With this configuration, if I do

set background=dark

and search for the word kamaraju, then text highlighted inside the
comments is very difficult to read. More over it is very difficult to see
the cursor (when it is inside the comments and on the word kamaraju)
position.

Is there any way to use background=dark and hls together and edit a C
file (which includes comments) efficiently?

thanks
raju

If you don't set 'background' at all, what is the default? I would expect
it to be set to "dark" in your kind of console terminal. If it isn't try
changing your vimrc to

set hls bg=dark
sy on


Ok. I set my .vimrc as above. Now if I open a file in konsole, or in xterm
the
:set bg?

shows that the background is set to dark. However, in konsole the
highlighted string is shown in brown background. where as in "xterm -bg
black -fg white", the highlighted string is shown in yellow background. Why
are they different when all the config files are same? Can I get xterm's
colors/behavior in konsole?

thanks
raju


Most console terminals have only 8 background colours, 16 foreground colours. Some have 16 of both. Non-bright yellow (including every "background" yellow) is usually shown as brown. Whether you can or cannot change the terminal's colour palette is outside the realm of Vim.


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
54. You start tilting your head sideways to smile.

Reply via email to