Friday, August 19, 2016

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

On Fri, Aug 19, 2016 at 05:35:48PM -0500, Peng Yu wrote:
> Hi, The attached image shows what is available in Acrobat, where all
> the search results will show in one window with search keyword
> highlighted. This can be convenient as one can easily see the search
> results across all the document and can jump to the hit easily by
> clicking.
>
> Is there something similar in vim?

You may try

:vimgrep /pattern/ % | copen

or

:lvimgrep /pattern/ % | lopen

The '%' refers to the current file. You may use * and ** to refer to
many files at once (recursively).

--
Erik Falor
Registered Linux User #445632 http://unnovative.net

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

Post a Comment