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 become highlighted
* calling ":set nohlsearch": highlighted strings are reversed to
their normal colors
* calling ":set hlsearch" again: strings matched by the previous
search are highlighted again
* searching for another string: automagically turns 'hlsearch' on, if
it was on when vim started
[...]
No. You are confusing two (or maybe three) different things:
:set nohlsearch
:set nohls
matches will never be highlighted (from now on)
:set hlsearch
:set hls
matches will always be highlighted (from now on)
:nohlsearch
:nohlsearc
:nohlsear
:nohlsea
:nohlse
:nohls
:nohl
:noh
temporarily remove the search highlights, until next search
this is an ex-command, not a settable option
There is no :hls command, BTW. This is only to temporarily remove
highlights.
See
:help 'hlsearch'
:help :nohlsearch
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
242. You turn down a better-paying job because it doesn't come with
a free e-mail account.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php