3

Is it possible to get behaviour like switchbuf=split, but only on error?

I don't want tons of windows that comes with using switchbuf=split, but I don't want to see errors like "E37: No write since last change" and "E36: Not enough room".

Is it possible to configure vim to open files from the quickfix in:

  1. existing window containing buffer (switchbuf=useopen)
  2. last used window (switchbuf=uselast)
  3. if error, split (??)

So it never shows these errors during buffer switch.

I'd previously used this code mapped to <CR> but found it didn't always jump to the correct file.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.