Vimmers,

I have a long source code consisting of multiple modules wrapped in {}.
Sometimes I use "*" to find the next match. But I'd like to search only within the same module or class that I started from. (which is wrapped
inside sub ... {})

In the following example, I'd like * or "n" to at least let me know that I
crossed the module boundary for instance 3. Or not match it at all.
If there's a way to highlight between the matching brackets
(open/close),
it would also be helpful, even if it doesn't allow highlighting of the
searched pattern.


sub aaa {
...
instance 1      # Begin by "*"
...
instance 2      # This is OK.
...
}
sub bbb {
...
instance 3      # This is not what I want
...
}

Is there a simple way to do it?

Thanks.


Ben K.
Developer
http://benix.tamu.edu

Reply via email to