allow plugins to override the default mappings

This commit is contained in:
Martin Grenfell
2014-07-15 18:54:57 +01:00
parent aa831e242b
commit f9a933991d
2 changed files with 10 additions and 1 deletions

View File

@@ -1060,6 +1060,9 @@ NERDTreeAddKeyMap({options}) *NERDTreeAddKeyMap()*
"callback" - the function the new mapping will be bound to
"quickhelpText" - the text that will appear in the quickhelp (see
|NERDTree-?|)
"override" - if 1 then this new mapping will override whatever previous
mapping was defined for the key/scope combo. Useful for overriding the
default mappings.
Additionally, a "scope" argument may be supplied. This constrains the
mapping so that it is only activated if the cursor is on a certain object.