1

I usually use a layout of one vertical split and two different buffers. When i use :copen, the quickfix window always opens in the right split, regardless where my cursor is. Consequently, if my cursor is in the left split, and I issue the commands :copen, :cclose, the buffer is changed.

Is there any way of opening the quickfix window in the same vertical split where my cursor is?

  • 1
    I'm not sure you can easily make it open in the current split but you could use :botright copen to make the window occupy the full width. – statox Jul 13 '17 at 7:36
  • @Isund The quickfix window has the special filetype qf so you could also use an autocommand like autocmd! FileType qf Myfunction() using a function which puts the window where you want. – statox Jul 13 '17 at 9:56

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.