In GVIM how can we search and highlight while keeping the previous search highlighted. Example As we search a new pattern the previous pattern gets un-highlighted.
So is ter a way we can retain the previous search highlighted while searching new patterns simultaneously.
regards
For your second search you can use
:2match Search /pattern/
For a third search term you can use :3match.
If you don't want to type this, you can put a command like this in .vimrc
command -nargs=1 S2 :2match search /<args>/
And in VIm just type :S2 pattern
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