When I use make into vim, with :make it automatically jump to the first error, displaying a new buffer in the current tab if needed.

I use vim with multiple tabs, most of the time the error buffer is already opened in another tab. Because of that, using :tabn or :tabp doesn't work in my case. :b# either... And the previous buffer could be the non last edited one.

link|improve this question
feedback

2 Answers

up vote 1 down vote accepted

There are two ways to address this:

  1. Use :make! and vim won't switch the buffer in the first place.
  2. Set switchbuf to useopen,usetab and the implicit :cf will attempt to switch to an existing window or tab displaying the buffer.
link|improve this answer
switchbuf=usetab is exactly what I wanted, thanks! – Jérôme Jan 4 at 16:23
feedback

You can try CTRL-o.

I use CTRL-z before make, then fg bring vim back.

link|improve this answer
I am using make inside vim – Jérôme Jan 4 at 15:12
feedback

Your Answer

 
or
required, but never shown

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