As mentioned in other questions, using make -C buildpath
as makeprg
in Vim and the appropriate errorformat triggers the nice handling of the quickfix directory stack.
That is, the quickfix uses the "Enter/Leave directory" printed by make
to append the right path to the detected files, so you can jump to them from the quickfix.
But it seems that it only works if make
is used as single thread, i.e. -j1
.
When using -jN
with N > 1 then the directory stack seems to be messed in my experience, and the quickfix doesn't get the right paths.
Any idea how to solve it?
-O
option onmake
that keeps the terminal output of make on sync even if it uses multiple threads internally.