delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/07/10:23:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A081C7E.306EEC1E@dddandr.octacon.co.uk>
Date: Tue, 07 Nov 2000 15:15:10 +0000
From: Don Sharp <Don DOT Sharp AT dddandr DOT octacon DOT co DOT uk>
Reply-To: dwsharp AT iee DOT org
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: gnuwin32 <cygwin AT sources DOT redhat DOT com>
Subject: Re: AW: AW: highlighting in vi
References: <C328ISL3CX7A*@MHS>

That works a treat. Now if we can just solve some of the other problems
mentioned, or should we wait for 6 and fix that one?

TVM

Don Sharp

Michael DOT Ring AT t-mobil DOT de wrote:
> 
> 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 AT sourceware DOT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019