diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index ebd1ec333..0c7aa9846 100644 --- a/src/main.c +++ b/src/main.c @@ -449,6 +449,12 @@ vim_main2(void) */ if (p_lpl) { + /* First add all package directories to 'runtimepath', so that their + * autoload directories can be found. Only if not done already with a + * :packloadall command. */ + if (!did_source_packages) + add_pack_start_dirs(); + # ifdef VMS /* Somehow VMS doesn't handle the "**". */ source_runtime((char_u *)"plugin/*.vim", DIP_ALL | DIP_NOAFTER); # else @@ -456,7 +462,10 @@ vim_main2(void) # endif TIME_MSG("loading plugins"); - ex_packloadall(NULL); + /* Only source "start" packages if not done already with a :packloadall + * command. */ + if (!did_source_packages) + load_start_packages(); TIME_MSG("loading packages"); # ifdef VMS /* Somehow VMS doesn't handle the "**". */ |