When executing :make from vim, after make is complete it automatically jumps to a file with errors. Is there a way to avoid this
EDIT
This is usecase i want to achieve
I want :make to execute then quicklist to open but the current file which i am working on should not be switched to the one with errors
with default settings after :make execution quicklist opens and the current file also changes
You can run
:make! | copen, which should place your cursor in the quickfix list instead of changing the current buffer. You can make this even easier by puttingcommand Mymake make! | copenin your .vimrc, so you only have to run:Mymaketo do this.Note that when selecting errors from the quickfix list, they will scroll a buffer with the file already open rather than change the current window if possible, and you can open the files in new windows with
<C-w> Enter.