This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
AW: AW: highlighting in vi
- To: ttt at po dot cwru dot edu, cygwin at sources dot redhat dot com
- Subject: AW: AW: highlighting in vi
- From: Michael dot Ring at t-mobil dot de
- Date: 7 Nov 2000 14:38:01 +0000
- Autoforwarded: FALSE
- Discarded-X400-MTS-Extensions: (43) (12) (2) (135) (115) (5) (6) (3)
- Original-Encoded-Information-Types: (1) (0) (10021) (7) (1) (0) (100), (1) (0) (10021) (7) (1) (0) (6), (1) (0) (10021) (7) (1) (0) (1)
- X400-Content-Identifier: C328ISL3CX7A
- X400-Content-Type: P2-1988 (22)
- X400-MTS-Identifier: [/PRMD=DTM/ADMD=DBP/C=DE/;F4CB75A811D4B4C300AAB393]
- X400-Originator: Michael.Ring@t-mobil.de
- X400-Received: by /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 7 Nov 2000 14:38:01 +0000
- X400-Received: by mta MB400-dxcasu in /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 7 Nov 2000 14:38:00 +0000
- X400-Received: by mta MB400-DXCW04 in /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 7 Nov 2000 14:38:01 +0000
- X400-Recipients: ttt@po.cwru.edu, cygwin@sources.redhat.com
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
endif
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 (6.0
is arround the corner!) then chances are high that you will have hlsearch on
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 results
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).
Thanks,
Tom
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com