Hi Tom!
On Sa, 18 Dez 2010, Tom Link wrote:
> > As you can see, the autoload script is loaded, even so vim shouldn't
> > need to. Is that the way autoloading is supposed to work or is this a
> > bug?
>
> The line has to be parsed because how would you know if it isn't
> an :endif.
Yes. But that doesn't mean, it the autoload function has to be loaded,
especially since it is known that the if-expression evaluates to false.
> if 0
> exe 'call test#WarningMsg("This plugin requires Vim 7.3 or
> higher")'
> finish
> endif
Ah that works. Thanks. (And yes Benjamin, this was supposed to be a
':call'. Just a bad test ;))
regards,
Christian
--
You received this message from the "vim_dev" 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