Hi Ralf :)

 * Ralf Schmitt <[EMAIL PROTECTED]> dixit:
> I'm a bit confused about the hlsearch feature of v7.
> In my .vimrc I set "set nohlsearch" to disable highlighting
> of search results on startup.

    This way, you've effectively turned off search highlighting, no
matter of ":nohl" command.

> :help nohlsearch says
> 
> Stop the highlighting for the 'hlsearch' option.  It
> is automatically turned back on when using a search
> command, or setting the 'hlsearch' option.

    Unfortunately, both the setting and the command have almost the same
name. The *command* ":nohlsearch" turns off search highlighting
temporarily, so it doesn't clutter your display. It is turned on again
if you do any new search. If you do "set nohlsearch", you will never get
search highlighting.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Reply via email to