From fa20629524d94592cf8f807ecda0fcc5a0783031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Fri, 24 Sep 2010 20:03:40 +0200 Subject: [PATCH] Extend and better exemplify 'loadplugins' documentation. --- common/locale/en-US/options.xml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/common/locale/en-US/options.xml b/common/locale/en-US/options.xml index b5e7d8b8..8628e360 100644 --- a/common/locale/en-US/options.xml +++ b/common/locale/en-US/options.xml @@ -888,12 +888,33 @@

A regular expression list that defines which plugins are loaded at - startup and via :loadplugins. The first item to match is + startup or via :loadplugins. The first item to match is the one that takes effect. If no items match, the file is not loaded. Setting this to a blank value effectively disables plugin - loading. See also :runtime. + loading. +

+

+ For example, to prepend to the default value of this option to load + all plugins except for foobar-plugin, you could use: +

+ :se lpl^=!foobar-plugin +

+ Alternatively, you can specify which plugins to load and which to + omit in your &dactyl.name;rc using something like + the below: +

+ :set loadplugins=!foo|bar,\.(js|vimp)$ +

+ That will load all plugins but foo and bar. +

+

+ Note that in the first expression of the latter example you don't + need parentheses, as the ! negates the whole of the + following expression (cf. regexlist). +

+

+ See also :runtime.

- :set loadplugins^=!foobar-plugin