Christian MICHON wrote:

Hi vimmers,

I would like to fold all lines not containing a keyword like
'warning'. Basically, I want to be able to open a file,
apply this filter and immediately see all warnings
related in my file.

Is there a one-liner way to do this? or must I do a
specific syntax folding file, or even a vim script?

any help/hint appreciated. thanks in advance

I suggest foldutil.vim, it can do it in a simpler way.
To get it, go to www.vim.org and search.

Best regards,
Linsong

Reply via email to