I have search highlighting turned on for Vim. If I have a terminal mode Vim split into different windows (displaying different files) and do a search in one, the search falls through to all the open windows and buffers and all occurrences of the search term are highlighted in all windows. Is it possible to restrict this to only the currently active window, with each window and buffer having its own effective search and highlighting?
What about making match
group and highlight it. For example
:highlight TEST ctermbg=grey guibg=grey
:match TEST /TODO/
The example creates match group TEST
and highlight it with terminal background and gui background set to grey
. This is just the idea, you can come up with many clever tricks around it.
:match
has limitation, so you might like to read :help :match
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With