When I use vim’s quickfix to jump to errors in my build, if the file containing an error isn’t already open it opens it in one of my splits, replacing the file I had open.
Is there a way to either reopen last closed file in a split or get quickfix to open files in a new split?
If you have the quickfix window open then pressing
<ctrl-W><enter>while the cursor is on the error you want to go to will open the file in a new split window.