Hi tyru,
I've run into this while adding integration between two plug-ins I was
developing. When you control both plug-ins you can add a dummy function
which the other plug-in can try to call (where catch /E117/ means the
plug-in isn't installed) or you can just use the g:loaded_plugin
convention and use exists('g:loaded_plugin') to detect the other
plug-in. Of course the g:loaded_plugin variable should be set from a
plug-in script in ~/.vim/plugin/ and not from a script in
~/.vim/autoload/, otherwise your back to the same problem :-). You also
probably shouldn't test for these g:loaded_* variables until all
plug-ins have been loaded (use the VimEnter autocmd or just test at
runtime).
If the above doesn't help because you really only want to check specific
functions, can't you just call them and catch any E117 errors?
- Peter Odding
--
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