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?
:botright copen
to make the window occupy the full width.qf
so you could also use an autocommand likeautocmd! FileType qf Myfunction()
using a function which puts the window where you want.