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.

link|improve this question

71% accept rate
feedback

2 Answers

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

link|improve this answer
feedback

I have not tried this one, but I've had it bookmarked for a while and it may be fairly close to what you want:

http://www.vim.org/scripts/script.php?script_id=2255

Since it ties into the quickfix system, you can show the matches in the quickfix window; see ":help quickfix-window".

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.