> No. You are confusing two (or maybe three) different things:
> :set nohlsearch
> :nohlsearch
Well, obviously I do. Now I can see it. Years ago, as a Vim newbie, I
somehow came to believe that :nohlsearch was a convenience shortcut
for :set nohlsearch. Because I usually define my mappings using :
On 13/12/11 12:49, Peter Slížik wrote:
Hi,
in it's current implementation, 'hlsearch' works as following:
* calling ":set hlsearch" for the first time after Vim has been
launched: just expresses user's general preference of having their
searches highlighted
* searching a text: all occurences
From: On Behalf Of Peter Slížik
> * On some Linux distributions, Vim highligts the old search, even if
> it is the first time I run it in the morning. In that case, it
> highlights the last search from the previous day. Quite annoying, too.
> I had never a chance to debug this, but I suspect it ha
On Tue, Dec 13, 2011 at 03:49:57AM -0800, Peter Slížik wrote:
> * On some Linux distributions, Vim highligts the old search, even if
> it is the first time I run it in the morning. In that case, it
> highlights the last search from the previous day. Quite annoying, too.
> I had never a chance to de
On 13-Dec-2011 12:49, Peter Slížik wrote:
> [37 lines deleted]
> * to introduce two new commands, e.g. ":clearhl" and ":restorehl",
> which would allow the user to turn the highlitghts off.
Neither intuitive nor easy to find, but :nohlsearch already exists :-)
-- regards, ingo
--
You received
Hi,
in it's current implementation, 'hlsearch' works as following:
* calling ":set hlsearch" for the first time after Vim has been
launched: just expresses user's general preference of having their
searches highlighted
* searching a text: all occurences become highlighted
* calling ":set nohlse