This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AW: AW: highlighting in vi

I seem to have the same problem. The background doesn't seem to change
when the forground does. It seems to me that highlighting is a computed
If the forground color of the font is yellow then the background in a
cell should be the opposite of yellow on the color scale. I don't know how
to compute
that but my VIM using yellow as the background. When I edit the
file and search for "set" they are all highlighted yellow. This problem
happens irrespective
of the bg={dark,light} setting.

Ed Bradford

Your Windows 2000 Arborist
T/L 589-4410; Outside: 1-919-993-4410 on 11/07/2000 09:38:01 AM

Sent by:

Subject:  AW: AW: highlighting in vi

The answer is in the /usr/share/vim/vimrc file:

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch

hlsearch is turned on here...

Simply add

set nohlsearch

to your .vimrc and it will never do highlighting.

You could also 'fix' /usr/share/vim/vimrc, but if you upgrade vim next time
is arround the corner!) then chances are high that you will have hlsearch
again ;-)

Michael Ring

-----Ursprüngliche Nachricht-----
Von: Tom Trelvik
Gesendet am: Dienstag, 7. November 2000 15:18
An: Michael Ring
Betreff: Re: AW: highlighting in vi

     So, this may be really simple, but how do you *un*highlight the
of a search in the vim that comes with cygwin?  Searching for a pattern
highlights every occurrance found.  But that highlighting seems to
stick, even on other files, and even if I get a new shell through cygwin
(either before, or after closing the current).



Want to unsubscribe from this list?
Send a message to

Want to unsubscribe from this list?
Send a message to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]