Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I search for a string, vim(gvim) highlights all the occurrences, which is great. But is there a way to show the occurrences with markers on the vertical bar on the right hand side, so if I click on the marker on the vertical bar, the editor can scroll automatically to the screen that contains the occurrence. Eclipse does it really nicely, but I haven't found such feature for vim(gvim)

I am not sure if vim(gvim) has this feature at all. If the answer is no, are there other Linux text editors that are free, have this feature, and are able to open large files ( >20M. A lot of editors can open such large files, but they simply freeze the computer, like Eclipse) ?

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

How do you perform your search?

:vim foo % | copen

opens a list of matches in the quickfix window. See :help quickfix.

The quickfix window doesn't appear on the right and there's no such thing as a "right column" in Vim but you can move it to the right with <C-w>L if you want. This doesn't seem very practical but it's doable. I don't know of a plugin or a native way to do exactly what you want.

The command above, coupled with :cn and :cp is very effective.

share|improve this answer
add comment

I've written the Buffersaurus plug-in to do this.

share|improve this answer
add comment

Your Answer

 
discard

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.