aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/map.txt
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc/map.txt')
-rw-r--r--runtime/doc/map.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index cd374c6f34..164e2d4ec5 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -1322,6 +1322,11 @@ can have arguments, or have a range specified. Arguments are subject to
completion as filenames, buffers, etc. Exactly how this works depends upon the
command's attributes, which are specified when the command is defined.
+When defining a user command in a script, it will be able to call functions
+local to the script and use mappings local to the script. When the user
+invokes the user command, it will run in the context of the script it was
+defined in. This matters if |<SID>| is used in a command.
+
There are a number of attributes, split into four categories: argument
handling, completion behavior, range handling, and special cases. The
attributes are described below, by category.
@@ -1770,9 +1775,5 @@ errors and the "update" command to write modified buffers): >
This will invoke: >
:call Allargs("%s/foo/bar/ge|update")
<
-When defining a user command in a script, it will be able to call functions
-local to the script and use mappings local to the script. When the user
-invokes the user command, it will run in the context of the script it was
-defined in. This matters if |<SID>| is used in a command.
vim:tw=78:ts=8:noet:ft=help:norl: