Thursday, August 25, 2016

Re: Is there way to show search matches in a separate window similar to Acrobat?

On Thursday, August 25, 2016 at 9:13:48 AM UTC-5, Ben Fritz wrote:
> Put the following in ~/.vim/ftplugin/qf.vim:
>
> """ begin """
> function! QfHlMatch()
> if exists('w:quickfix_title') && w:quickfix_title =~ 'vimgrep'
> if exists('b:QF_HL_id')
> call matchdelete(b:QF_HL_id)
> endif
> let pat = substitute(w:quickfix_title, '\v.*vimgrep\s+(.)(%(%(\1)@!.|\\@<=\1)+)\1.*', '\2', '')
> let b:QF_HL_id = matchadd('IncSearch', pat)
> endif
> endfun
>

Oops, b:QF_HL_id should be w:QF_HL_id throughout.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: