Am 21.09.2010 11:20, schrieb Davido:
I would like to to this :

:g/pattern/NR

to edit the matching lines in a new buffer.

Not exactly what you want but IIRC there is a plugin that hides all
text in folds that doesn't match a certain pattern. Maybe it was this
one?
http://www.vim.org/script.php?script_id=158

It provides a command :FoldNonMatching

Regards,
Tom

It sounds promising, thanks, I will take a look and check that the hidden
text is write protected.

"hidden text" is only folded away, and cannot be "write protected".
Nevertheless, I find it very useful to just fold away non-interesting
lines.

I've also written a script, "searchfold.vim" (much smaller than Hari's):
http://www.vim.org/scripts/script.php?script_id=2521
Page and script file provide a few more pointers.

--
Andy

--
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