diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-02-20 20:44:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-20 20:44:55 +0000 |
commit | 938ae280c79b8cdb0fca60336ec4c090ecd8bb5a (patch) | |
tree | c9418dcff4d627d7c86aa740a47082f02ad555f6 /runtime/doc/autocmd.txt | |
parent | 6b066c6d8f57aa05f1ab29ab4d098bc4bfabb1bb (diff) |
Update runtime files.
Diffstat (limited to 'runtime/doc/autocmd.txt')
-rw-r--r-- | runtime/doc/autocmd.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 73506cc4c0..04f019174b 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 9.0. Last change: 2022 Dec 12 +*autocmd.txt* For Vim version 9.0. Last change: 2023 Feb 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -64,7 +64,7 @@ Example in Vim9 script: > In legacy script: > call autocmd_add(#{replace: v:true, \ group: 'DemoGroup', - \ event: 'BufEnter', + \ event: 'BufEnter', \ pattern: '*.txt', \ cmd: 'call DemoBufEnter()' \ }) @@ -398,7 +398,7 @@ Name triggered by ~ |InsertEnter| starting Insert mode |InsertChange| when typing <Insert> while in Insert or Replace mode |InsertLeave| when leaving Insert mode -|InsertLeavePre| just before leaving Insert mode +|InsertLeavePre| just before leaving Insert mode |InsertCharPre| when a character was typed in Insert mode, before inserting it @@ -611,9 +611,11 @@ CmdlineEnter After moving the cursor to the command line, where the user can type a command or search string; including non-interactive use of ":" in a mapping, but not when using |<Cmd>|. + The pattern is matched against the character + representing the type of command-line. + |cmdwin-char| <afile> is set to a single character, indicating the type of command-line. - |cmdwin-char| *CmdlineLeave* CmdlineLeave Before leaving the command line; including non-interactive use of ":" in a mapping, but |