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

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/

Reply via email to