On 10/20/06, Peter Hodge <[EMAIL PROTECTED]> wrote:
--- Yakov Lerner <[EMAIL PROTECTED]> wrote:> Almost every plugin begins with this check: > if exists("g:plugin_name") | finish | endif > let g:plugin_name = 1 > I understand this tries to save time if vim tries to load plugins 2nd time. > But aren't plugins loaded only at vim startup ? Does vim *ever* > ever try to load plugins 2nd time ? In which situation can vim load > plugin 2nd time (except for some manual command) ? > > Yakov > I think it is because you may have a copy of the plugin in $VIMRUNTIME as well as in your .vim folder. In this way, your .vim copy is sourced first (well, according to 'rtp'), sets the g:plugin_name variable and when the $VIMRUNTIME plugins are sourced, and it sees the variable and prevents loading that copy of the plugin also.
Ok, I found the description in usr_41.txt, at "NOT LOADING". Thanks Yakov
