Hello,
Andrea Ratto <[EMAIL PROTECTED]> wrote:
> I need some plugin to be able to compile using ant and parse it's output
> from vim.
> I've seen there are some, but I want something small and simple i have
> not found yet.
> Any recomendation will be appreciated. Thanks.
There is a compiler-plugin for ant. -> :h compiler-plugin
IIRC, it is not that useful when the real compiler is for instance GCC (g++
called through cppTask), and not javac.
I finally chosed, with BuilToolWrapper [1], to rely on a very simple perl script
that parses the output of the compilation
------------- >% --------------------
#!/usr/bin/perl
# Main loop: get rid of /^\s*[.*]\s*/
while (<>)
{
chop;
$_ =~ s/^\s*\[.*?\]\s*// ;
print "$_\n";
}
------------- >% --------------------
[1] http://hermitte.free.fr/vim/ressources/lh-BTW.tar.gz
HTH,
--
Luc Hermitte