In GVIM how can we search and highlight while keeping the previous search highlighted

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

-------------Problems Reply------------

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

You can use this:

/CTRL-RCTRL-O/\|pattern

Which will insert current search pattern, and start an alternative.

Category:vim Views:0 Time:2012-01-31
Tags: vim

Related post

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.159 (s). 11 q(s)