|
1 |
| -*autocmd.txt* For Vim version 9.1. Last change: 2025 Apr 04 |
| 1 | +*autocmd.txt* For Vim version 9.1. Last change: 2025 Apr 21 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -398,6 +398,7 @@ Name triggered by ~
|
398 | 398 | |CmdlineChanged| after a change was made to the command-line text
|
399 | 399 | |CmdlineEnter| after the cursor moves to the command line
|
400 | 400 | |CmdlineLeave| before the cursor leaves the command line
|
| 401 | +|CmdlineLeavePre| before preparing to leave the command line |
401 | 402 |
|
402 | 403 | |InsertEnter| starting Insert mode
|
403 | 404 | |InsertChange| when typing <Insert> while in Insert or Replace mode
|
@@ -639,6 +640,18 @@ CmdlineLeave Before leaving the command line; including
|
639 | 640 | <afile> is set to a single character,
|
640 | 641 | indicating the type of command-line.
|
641 | 642 | |cmdwin-char|
|
| 643 | + *CmdlineLeavePre* |
| 644 | +CmdlineLeavePre Just before leaving the command line, and |
| 645 | + before |CmdlineLeave|. Useful for capturing |
| 646 | + completion info with |cmdcomplete_info()|, as |
| 647 | + this information is cleared before |
| 648 | + |CmdlineLeave| is triggered. Triggered for |
| 649 | + non-interactive use of ":" in a mapping, but |
| 650 | + not when using |<Cmd>|. Also triggered when |
| 651 | + abandoning the command line by typing CTRL-C |
| 652 | + or <Esc>. <afile> is set to a single |
| 653 | + character indicating the command-line type. |
| 654 | + See |cmdwin-char| for details. |
642 | 655 | *CmdwinEnter*
|
643 | 656 | CmdwinEnter After entering the command-line window.
|
644 | 657 | Useful for setting options specifically for
|
|
0 commit comments