On Mon, May 07, 2007 at 10:38:21AM +0200, Warren Crossing wrote: >>> Thanks for that, I am using the efm but finds it drops the first >>> line of the first error.
> Ok, I dont profess to know much about efm vim etc but I changed the %Z > to %A and it now gets the new line. something about multiline messages > I don't understand. It sounds suspiciously like the sed filter script I included isn't working properly. '%Z' signifies the end of an error, '%A' signifies the start of one. Can you verify that 'makeprg' is set to use the filter: (in vim, while editing a java file:) :set makeprg? makeprg=javac % 2>&1 \| vim-javac-filter ... and that it transforms javac output correctly? For example, with this file: (contents of example-javac-error.txt:) org/datagrok/application/Application.java:20: <identifier> expected d ^ 1 error ... you should see something like this when you run the filter: (on the command line:) [EMAIL PROTECTED]:~/lib/java$ vim-javac-filter example-javac-error.txt d ^ org/datagrok/application/Application.java:20: <identifier> expected 1 error Also, are you doing anything else differently than I am? Calling javac from a Makefile or an Ant script maybe? Anything that would change how I expect the output to look? > This helped me debug the errorformat, you probably have some other > wizardry. No wizardry here; I use 'tee' to save a copy of the output before vim gets ahold of it, then I 'watch cat' that temporary file. Good luck and thanks for helping me improve this. -Mike