Vim list all search results
Is there a way to list all search results of vim in a separate buffer, sort of like what Ctrl-] does when multiple matches are found? Although browsing with n and N is okay too, I believe it might be even faster that way.
:grep
will use the QuickFix window, which will let you see all the matches and quickly jump between them. For example, :grep <cword> %
will search for the token currently under the cursor, within the current file.