VIM open compile error in existing or new tab?

You're looking for the 'switchbuf' option. If you set switchbuf=useopen,usetab,newtab then any window/tab that is already displaying the buffer with the error will be focused. If there isn't a window/tab displaying the buffer, then a new tab will be created in which to display it.

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

When I compile or run a file from VIM all error references are opened in the last active buffer regardless if the file is open already in another vim tab. This behavior is very annoying. Is there any way to force vim to behave like ':tab drop' on compile errors?

(See vim.wikia.com/wiki/Edit_a_file_or_jump_t...) Thanks a lot for any hints! C++ c vim make link|improve this question asked Aug 21 '10 at 11:07Peter82.

You're looking for the 'switchbuf' option. If you set switchbuf=useopen,usetab,newtab, then any window/tab that is already displaying the buffer with the error will be focused. If there isn't a window/tab displaying the buffer, then a new tab will be created in which to display it.

Thanks! Exactly what I searched for. – Peter Aug 21 '10 at 13:39.

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