summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-05-27 18:05:33 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-27 18:05:33 +0100
commite0ff3a7de6030b73d94121626deb8229e66e82b2 (patch)
treead08f28abf01c743f8bae5892920c6c45603c00a /runtime
parentcfe456543e840d133399551f8626d985e1fb1958 (diff)
patch 8.2.5030: autocmd_add() can only handle one event and patternv8.2.5030
Problem: autocmd_add() can only handle one event and pattern. Solution: Support a list of events and patterns. (Yegappan Lakshmanan, closes #10483)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/builtin.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 0aa2effcd0..371670ceba 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -938,7 +938,8 @@ autocmd_add({acmds}) *autocmd_add()*
item is ignored.
cmd Ex command to execute for this autocmd event
event autocmd event name. Refer to |autocmd-events|.
- TODO: currently only accepts one event.
+ This can be either a String with a single
+ event name or a List of event names.
group autocmd group name. Refer to |autocmd-groups|.
If this group doesn't exist then it is
created. If not specified or empty, then the
@@ -950,7 +951,9 @@ autocmd_add({acmds}) *autocmd_add()*
|autocmd-once|.
pattern autocmd pattern string. Refer to
|autocmd-patterns|. If "bufnr" item is
- present, then this item is ignored.
+ present, then this item is ignored. This can
+ be a String with a single pattern or a List of
+ patterns.
replace boolean flag, set to v:true to remove all the
commands associated with the specified autocmd
event and group and add the {cmd}. This is