>
> I know this dates me, but back in the day I used to exclude all lines in the ISPF editor using X9999 and then use 'find' to display (unexclude) lines that matched the find criteria. I have been trying to do the same thing with Vim by folding all lines and searching, but my search unfolds all lines. Is there a way to search folded lines and have only matching lines unfolded?
you can get sort-of what you want using a plugin, and the quickfix
window.
See, for example, the Bgrep plugin
http://www.vim.org/scripts/script.php?script_id=2545
or this other script:
http://git.devnull.li/vim-jerojasro.git/blob_plain/HEAD:/local-settings/plugin/BufGrep.vim
They will take a search pattern and create a list with the matches (of
the current buffer or buffers). You can see the list using the :cwindow
command.
See :help :vimgrep , and :help quickfix.txt
--
Javier Rojas
GPG Key ID: 0x24E00D68
No comments:
Post a Comment