When I have multiple files open in multiple splits, when I open a new file via quickfix ( or Ctrl-P ), it sometimes ends up placing the new file in a window that I don't want to be changed.

Is there a way we can specify a lock/pin on the viewport so that new files don't replace them?

  • 2
    I think your question is more or less the same problem I had a few years ago and I think the answer to this question is: it's not really possible to enforce what you want to do without being extremely hacky.
    – statox
    Apr 30, 2019 at 14:09


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.