How do I prevent the vim from using the wrong viewport after the :make command?

Up vote 2 down vote favorite share g+ share fb share tw.

I often have multiple viewports opened in vim, using the :vsp and :sp commands. After I've been editing for a while, I'll often run the :make command from within vim. When I get errors, vim will then show me the lines that gcc says caused my errors.

However, vim will often open the file with errors in another viewport, even if that file is already open. An Example: Before Make -------------------- | | | | file 1 | file 2 | | | | | | | -------------------- Ok, assume there are errors in file 2 -------------------- | | | | file 2 | file 2 | | | | | | | -------------------- vim now jumps to the error line in the left viewport, even though the right viewport already had that file open. Is there some way to tell vim not to use the file one viewport if the file that the error is in is already open in vim?

C vim make vi link|improve this question asked Apr 17 '09 at 16:20Paul Wicks6,853135180 74% accept rate.

1 I'd also recommend switchbuf=usetab (it's the same as useopen but also looks for buffers in tabs). – spatz Jul 26 '09 at 14:23.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions