1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-13 12:05:47 +01:00

When setting rtp on startup, set VIMPERATOR_RUNTIME to match if it doesn't already exist.

This commit is contained in:
Ted Pavlic
2008-12-30 10:10:37 -05:00
parent 5b0d6674db
commit 5d8d61cc01
2 changed files with 11 additions and 2 deletions

View File

@@ -922,8 +922,14 @@ lookup:
}; //}}} }; //}}}
IO.__defineGetter__("runtimePath", function () services.get("environment").get(config.name.toUpperCase() + "_RUNTIME") || IO.__defineGetter__("runtimePath", function () {
"~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase()); let getrtp = services.get("environment").get(config.name.toUpperCase() + "_RUNTIME");
if( ! getrtp )
{
getrtp = "~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase();
services.get("environment").set(config.name.toUpperCase() + "_RUNTIME", getrtp);
}
return getrtp; });
IO.expandPath = function (path, relative) IO.expandPath = function (path, relative)
{ {

View File

@@ -604,6 +604,9 @@ plugin/ +
Example: [c]:set runtimepath=\~/myvimperator,\~/.vimperator[c] + Example: [c]:set runtimepath=\~/myvimperator,\~/.vimperator[c] +
This will search for plugins in both "\~/myvimperator/plugin" and This will search for plugins in both "\~/myvimperator/plugin" and
"\~/.vimperator/plugin" "\~/.vimperator/plugin"
On startup, if the environment variable _$VIMPERATOR_RUNTIME_ does not
exist, Vimperator will set it to match this value.
____ ____