I'm using :make
from vim
and ending up jumping to the file with issues.
Recently, at least I noticed with gcc 4.6.1
, vim
jumps to incorrect file/line because it goes to the first reported line which has "In file included from ABC.h|5| 0,"
and there is no file called "In file included from ABC.h"
.
There is a solution to extract just the file name from the above line, ABC.h
in this case, but that does not solve the problem as the problematic file is only included there.
Usually the next line indicates where the issue is and that's where I would like to jump:
MyDir/FGH.h|56 col 32| error: 'bad bad thing happened here'
Is there a known fix for this in vim
?