comparison runtime/doc/autocmd.txt @ 32004:a9b5ffbc0428

Update runtime files. Commit: https://github.com/vim/vim/commit/938ae280c79b8cdb0fca60336ec4c090ecd8bb5a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 20 20:44:55 2023 +0000 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Feb 2023 22:00:05 +0100
parents 7d68a90cbf5c
children 635de73eeb4c
comparison
equal deleted inserted replaced
32003:aa9c0f0ebfd0 32004:a9b5ffbc0428
1 *autocmd.txt* For Vim version 9.0. Last change: 2022 Dec 12 1 *autocmd.txt* For Vim version 9.0. Last change: 2023 Feb 18
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
62 }) 62 })
63 63
64 In legacy script: > 64 In legacy script: >
65 call autocmd_add(#{replace: v:true, 65 call autocmd_add(#{replace: v:true,
66 \ group: 'DemoGroup', 66 \ group: 'DemoGroup',
67 \ event: 'BufEnter', 67 \ event: 'BufEnter',
68 \ pattern: '*.txt', 68 \ pattern: '*.txt',
69 \ cmd: 'call DemoBufEnter()' 69 \ cmd: 'call DemoBufEnter()'
70 \ }) 70 \ })
71 71
72 ============================================================================== 72 ==============================================================================
396 |CmdlineLeave| before the cursor leaves the command line 396 |CmdlineLeave| before the cursor leaves the command line
397 397
398 |InsertEnter| starting Insert mode 398 |InsertEnter| starting Insert mode
399 |InsertChange| when typing <Insert> while in Insert or Replace mode 399 |InsertChange| when typing <Insert> while in Insert or Replace mode
400 |InsertLeave| when leaving Insert mode 400 |InsertLeave| when leaving Insert mode
401 |InsertLeavePre| just before leaving Insert mode 401 |InsertLeavePre| just before leaving Insert mode
402 |InsertCharPre| when a character was typed in Insert mode, before 402 |InsertCharPre| when a character was typed in Insert mode, before
403 inserting it 403 inserting it
404 404
405 |ModeChanged| after changing the mode 405 |ModeChanged| after changing the mode
406 406
609 *CmdlineEnter* 609 *CmdlineEnter*
610 CmdlineEnter After moving the cursor to the command line, 610 CmdlineEnter After moving the cursor to the command line,
611 where the user can type a command or search 611 where the user can type a command or search
612 string; including non-interactive use of ":" 612 string; including non-interactive use of ":"
613 in a mapping, but not when using |<Cmd>|. 613 in a mapping, but not when using |<Cmd>|.
614 The pattern is matched against the character
615 representing the type of command-line.
616 |cmdwin-char|
614 <afile> is set to a single character, 617 <afile> is set to a single character,
615 indicating the type of command-line. 618 indicating the type of command-line.
616 |cmdwin-char|
617 *CmdlineLeave* 619 *CmdlineLeave*
618 CmdlineLeave Before leaving the command line; including 620 CmdlineLeave Before leaving the command line; including
619 non-interactive use of ":" in a mapping, but 621 non-interactive use of ":" in a mapping, but
620 not when using |<Cmd>|. 622 not when using |<Cmd>|.
621 Also when abandoning the command line, after 623 Also when abandoning the command line, after