Re: Question about auto-loading of plugins

2010-12-19 Fir de Conversatie Christian Brabandt
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

Re: Question about auto-loading of plugins

2010-12-19 Fir de Conversatie Christian Brabandt
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

Question about auto-loading of plugins

2010-12-18 Fir de Conversatie Christian Brabandt
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

Re: Question about auto-loading of plugins

2010-12-18 Fir de Conversatie Benjamin R. Haskell
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

Re: Question about auto-loading of plugins

2010-12-18 Fir de Conversatie Tom Link
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