Monday, April 24, 2023

Re: Search multiple windows

On 2023-04-24 12:38, Ben Mehmet wrote:
> My question, however, is is there a way/plugin/mapping that I
> could enable to have vim highlight and move to next occurrence
> of my search pattern in all the rest of windows highlighted

I usually do this semi-manually with something like

:windo /pattern

to jump to the next match in each window or

:windo g/pattern/#

to list all the matching lines in all of the windows

Because 'hls' is a global option, if you have it enabled, it should
highlight things in the rest of the windows too, not just the current
one.

-tim





--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZEbgWqkfrz2hjjJw%40thechases.com.

No comments:

Post a Comment