On Mon, 27 Nov 2006, Bill Moseley wrote:
> I know the OP was asking about vim6, but in vim7 it seems like setting
I'm fairly sure they are the same in this respect....
>
> :compiler perl
>
> has to be done to select the correct compiler script. Is that
> expected? Do I need to map, say, .pl and .pm to compiler perl in my
> .vimrc?
When you load a filetype with a given syntax, you may want to do
different things with it when you 'compile' it. You may have the
file as part of a Make, Rake, or Ant setup, so you need to parse
the errors from that. Or for C, you may need to push it through
a compiler or through lint. I think this is why :compiler doesn't
default to give just perl -w -c or similar.
Hugh