aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/map.txt
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-04-23 15:22:55 +0200
committerGitHub <noreply@github.com>2023-04-23 15:22:55 +0200
commite3f36377c156749bbdafc46d8a8cd017f378b4b5 (patch)
treeacaaab31bc9e0bdaddc5765aa0b7d1acd11fbecf /runtime/doc/map.txt
parentf17bb4f41102ecec7989bc4c14c626dc595e2f0b (diff)
downloadrneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.gz
rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.bz2
rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.zip
vim-patch:71badf9547e8 (#23285)
Update runtime files https://github.com/vim/vim/commit/71badf9547e8f89571b9a095183671cbb333d528 Co-authored-by: Bram Moolenaar <Bram@vim.org>
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: