Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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

share|improve this answer

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:

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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