Thanks ZyX and Bram for this.

I'm helping to maintain the ack.vim, a plugin to use ack as grepprg. One option 
on the plugin is highlight the results after the search, to do that I am using 
something like that:

if g:ackhighlight
  setlocal hlsearch
  let @/ = searched_term
  let v:hlsearch = &hlsearch
endif

But the searched_term is being highlighted only on "current buffer", is not 
being highlighted in quickfix window, at least not until I press 'n'.

Is this a waited behaviour?

Thank's

On Sunday, 22 September 2013 08:43:07 UTC-3, Bram Moolenaar  wrote:
> ZyX wrote:
> 
> 
> 
> > This patch adds v:hlsearch variable that provides a way to determine whethe=
> 
> > r search pattern is highligted if 'hlsearch' is on. This is useful in nohls=
> 
> > earch/set hlsearch togglers and also makes plugins like format.vim one step=
> 
> >  closer to generating a complete =93screenshot=94 of what vim shows.
> 
> > 
> 
> > Variable is read-write thus togglers can be reduced to just
> 
> > 
> 
> >    :let v:hlsearch=3D!v:hlsearch
> 
> 
> 
> Thanks, I'll add it in the todo list.
> 
> 
> 
> 
> 
> -- 
> 
> hundred-and-one symptoms of being an internet addict:
> 
> 246. You use up your free 100 hours in less than a week.
> 
> 
> 
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> 
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> 
> \\\  an exciting new programming language -- http://www.Zimbu.org        ///
> 
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui