I'm trying to set up an errorformat to show linker errors from Visual Studio 
2010, for example:

2>fonts.obj : warning LNK4217: locally defined symbol _LibDatabasePath imported 
in function _fonts_Create

I want this to show as:

fonts.obj|warning 4217| locally defined symbol _LibDatabasePath imported in 
function _fonts_Create

So, I created this errorformat string:

%*\\d>%f\ :\ %t%*\\S\ LNK%n:\ %m

But, instead of what I expect, I get:

fonts.obj|| locally defined symbol _LibDatabasePath imported in function 
_fonts_Create

If I change the %n to %l (which is WRONG, that's an error ID not a line 
number), it shows as:

fonts.obj|4217 warning| locally defined symbol _LibDatabasePath imported in 
function _fonts_Create

It seems that quickfix only shows the error type/number if there is a line 
number associated with it. Is this intentional? Is there a better way to make 
it work, regardless? I'm not fond of my workaround but I suppose it works for 
now if there's not a better one.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to