0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1550

Problem:    Cannot load packages early.
Solution:   Add the ":packloadall" command.
This commit is contained in:
Bram Moolenaar
2016-03-12 20:34:27 +01:00
parent c835293d54
commit 2d8f56acb3
6 changed files with 33 additions and 5 deletions

View File

@@ -3189,14 +3189,21 @@ theend:
vim_free(ffname);
}
static int did_source_packages = FALSE;
/*
* ":packloadall"
* Find plugins in the package directories and source them.
*/
void
source_packages()
ex_packloadall(exarg_T *eap)
{
do_in_path(p_pp, (char_u *)"pack/*/start/*", DIP_ALL + DIP_DIR,
if (!did_source_packages || (eap != NULL && eap->forceit))
{
did_source_packages = TRUE;
do_in_path(p_pp, (char_u *)"pack/*/start/*", DIP_ALL + DIP_DIR,
add_pack_plugin, p_pp);
}
}
/*