Collapse out all lines not matching "/pattern"?
Joseph Wulf <[email protected]> Sun, 13 Jul 2025 15:24:57 -0400
| Newsgroups | gmane.editors.vim |
|---|---|
| Message-ID | <CAJ8cad-ZE6mtPDe0_zv3PFDUmnq+OKN5fbcLg=utGfpSj6braQ@mail.gmail.com> |
In regular/normal vim editing, is there a method to collapse out of view all lines NOT matching "/pattern"? Though I use vimdiff a lot, the only relevance to vimdiff is the way it collapses out lines not relevant to the differentiation process. So, when I'm using regular VIM, I'm wondering if there's a way to search for "/pattern" ---and--- only see matching lines? I also tend to have line numbers on a lot, which would greatly help me to focus on certain things. Thank you. R, -Joe Wulf -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAJ8cad-ZE6mtPDe0_zv3PFDUmnq%2BOKN5fbcLg%3DutGfpSj6braQ%40mail.gmail.com.