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 higher")
        finish
endif
~$ cat autoload/test.vim
fun! test#WarningMsg(msg)"{{{1
        echohl WarningMsg
        echomsg a:msg
        echohl Normal
        let v:errmsg = a:msg
endfun "}}}
~$  vim -u NONE -U NONE -N -i NONE  +'ru plugin/testPlugin.vim|scriptnames'
  1: /home/chrisbra/.vim/plugin/testPlugin.vim
  2: /home/chrisbra/.vim/autoload/test.vim
#v-

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?

regards,
Christian
-- 
Man muss bedenken, dass unter den Menschen gar viele sind, die 
doch auch etwas Bedeutendes sagen wollen, ohne produktiv zu sein, und 
da kommen die wunderlichsten Dinge an den Tag.
                -- Goethe, Maximen und Reflektionen, Nr. 60

-- 
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

Raspunde prin e-mail lui