On 03/08/12 07:27, Govind wrote:
In which case it will be interesting to see if I can do the
command sequence x all; f all 'search string' that is
incredibly useful when editing cobol programs or mainframe
files, i.e. show me only the lines that satisfy the search
criteria.

I don't see any need for it right now, just curious.

I suspect you want something like

  :set foldmethod=expr foldexpr=getline(v:lnum)!~@/

You might have to use "zx" to update the folds after searching for another term.

  :help 'foldmethod'
  :h 'foldexpr'
  :h zx

-tim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to