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
Hi Benjamin!
On Sa, 18 Dez 2010, Benjamin R. Haskell wrote:
On Sat, 18 Dec 2010, Christian Brabandt wrote:
exe test#WarningMsg(This plugin requires Vim 7.3 or higher)
I think you want 'call' here, rather than 'exe'.
Yes. A left over from one of my tests. Didn't notice it, when
Hello,
while working on one of my plugins, I noticed, that the autoload-scripts
of my plugin was source on startup. Consider this simple test plugin:
#v+
~$ cat plugin/testPlugin.vim
if exists(g:loaded_test) || cp
finish
endif
if 0
exe test#WarningMsg(This plugin requires Vim 7.3 or
On Sat, 18 Dec 2010, Christian Brabandt wrote:
Hello,
while working on one of my plugins, I noticed, that the
autoload-scripts of my plugin was source on startup. Consider this
simple test plugin:
#v+
~$ cat plugin/testPlugin.vim
if exists(g:loaded_test) || cp
finish
endif
if 0
exe
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. Maybe that's when the autoload function is loaded?
Anyway, you still can