summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-21 23:02:49 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-21 23:02:49 +0100
commitf6fee0e2d4341c0c2f5339c1268e5877fafd07cf (patch)
tree86922c1a8c51e62f0369db6decc5582c01b03d2c /src/option.c
parent271273c39f2150ecdaa67fe1a2a8e9cdc63db545 (diff)
patch 7.4.1384v7.4.1384
Problem: It is not easy to use a set of plugins and their dependencies. Solution: Add packages, ":loadopt", 'packpath'.
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c
index 8daba63819..4f73c0b21e 100644
--- a/src/option.c
+++ b/src/option.c
@@ -1978,6 +1978,11 @@ static struct vimoption options[] =
{"osfiletype", "oft", P_STRING|P_ALLOCED|P_VI_DEF,
(char_u *)NULL, PV_NONE,
{(char_u *)0L, (char_u *)0L} SCRIPTID_INIT},
+ {"packpath", "pp", P_STRING|P_VI_DEF|P_EXPAND|P_ONECOMMA|P_NODUP
+ |P_SECURE,
+ (char_u *)&p_pp, PV_NONE,
+ {(char_u *)DFLT_RUNTIMEPATH, (char_u *)0L}
+ SCRIPTID_INIT},
{"paragraphs", "para", P_STRING|P_VI_DEF,
(char_u *)&p_para, PV_NONE,
{(char_u *)"IPLPPPQPP TPHPLIPpLpItpplpipbp",
@@ -11045,6 +11050,7 @@ set_context_in_set_cmd(
if (p == (char_u *)&p_bdir
|| p == (char_u *)&p_dir
|| p == (char_u *)&p_path
+ || p == (char_u *)&p_pp
|| p == (char_u *)&p_rtp
#ifdef FEAT_SEARCHPATH
|| p == (char_u *)&p_cdpath