I routinely have 4 windows, split into a 2x2 grid. When I run a command that populates the quickfix, the first matching location is opened in the current window. But if I choose a QF location that isn't already loaded, it always seems to open in bottom-right-hand window.
Is there a way to make it load in a different window? Specifically, is there a way to make it load in the last window I was in - i.e. the window that "CTRL-w p" would take me to?
In the quickfix window, each line is one error. The line number is equal to
the error number. You can use ":.cc" to jump to the error under the cursor.
Hitting the key or double-clicking the mouse on a line has the same
effect. The file containing the error is opened in the window above the
quickfix window. If there already is a window for that file, it is used
instead. If the buffer in the used window has changed, and the error is in
another file, jumping to the error will fail. You will first have to make
sure the window contains a buffer which can be abandoned.
I don't think you'll be able to avoid creating a custom mapping.