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.

idbrii
  • 641
  • 4
  • 14

0 Answers0