Quoting Yakov Lerner <[EMAIL PROTECTED]>: > 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) ?
Here's two reasons: It allows new versions of the plugin to be placed in the user's .vim/ (vimfiles\) directories to override older versions that may have come with vim. It allows users to disable a plugin by setting the loading variable. Regards, Chip Campbell