On Sat, May 05, 2007 at 04:38:48PM +0200, David Nečas (Yeti) wrote: > > I have troubles with the default compiler error format > matching libtool's -version-info option that appears in > make output and takes three colon-separated numbers as its > argument, e.g. > > -version-info 1:2:3 > > When vim sees this it takes it for an error location and > opens a file with a very silly name as the `source file' -- > try loading the attached file as errorfile (note that while > the splitting of long errorfile lines does not improve the > situation, it is not the primary problem). > > I tried to fix the error format with things like > > :set errorformat+=%-G%.%#-version-info > > without any effect. Even just > > :set errorformat=%-G%.%#-version-info,%f:%l:%m > > does not ignore lines contaning `-version-info'. I probably > misundertood something in the error format syntax.
I was able to work around this problem by sed-ing out the offending parts with shellpipe :set shellpipe=2>&1\|sed\ -r\ 's/-version-info\ +[0-9]+:[0-9]+:[0-9]+//'\|tee However, I'm still interested in errorformat solution, if it's possible. Yeti -- http://gwyddion.net/