Loading ...
Sorry, an error occurred while loading the content.

Re: open folds if they contain the search string

Expand Messages
  • David.Fishburn@sybase.com
    See :h foldopen Mine has: Set foldopen=block,hor,mark,percent,quickfix,search,tag,undo,jump Based on the help you need at least search in yours. Dave ... From:
    Message 1 of 2 , Feb 27, 2005
    • 0 Attachment
      See :h foldopen

      Mine has:
      Set foldopen=block,hor,mark,percent,quickfix,search,tag,undo,jump

      Based on the help you need at least search in yours.

      Dave





      ----- Original Message -----
      From: Kamaraju Kusumanchi [kamaraju@...]
      Sent: 02/27/2005 01:11 PM
      To: vim@...
      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
      raju

      --
      Kamaraju S Kusumanchi
      Cornell University
      http://people.cornell.edu/pages/kk288/
      http://groups.yahoo.com/group/flumech/
    Your message has been successfully submitted and would be delivered to recipients shortly.