Re: open folds if they contain the search string
- See :h foldopen
Based on the help you need at least search in yours.
----- Original Message -----
From: Kamaraju Kusumanchi [kamaraju@...]
Sent: 02/27/2005 01:11 PM
Subject: open folds if they contain the search string
Let's say, In a file if there are some folds already defined. Now if I search
for some text in this file, I want the folds to open up automatically if they
contain the search string. How can I do this?
Moreover, if it is possible, I would also like these folds to go back
to their original 'pristine' shapes if I search for another string
(and this search string does not occur in the file).
Is this possible in vim? I seached google. But could not find an
answer. I dont know what to look for in the online vim help.
thanks in advance
Kamaraju S Kusumanchi