Mercurial > vim
comparison runtime/doc/autocmd.txt @ 12656:0a9dacb8826a v8.0.1206
patch 8.0.1206: no autocmd for entering or leaving the command line
commit https://github.com/vim/vim/commit/fafcf0dd59fd9c4ef743bb333ae40d1d322b6079
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 19 18:35:51 2017 +0200
patch 8.0.1206: no autocmd for entering or leaving the command line
Problem: No autocmd for entering or leaving the command line.
Solution: Add CmdlineEnter and CmdlineLeave.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 19 Oct 2017 18:45:05 +0200 |
parents | 49c12c93abf3 |
children | 3b26420fc639 |
comparison
equal
deleted
inserted
replaced
12655:6963f5ca8813 | 12656:0a9dacb8826a |
---|---|
490 <afile> are set to the name of the command. | 490 <afile> are set to the name of the command. |
491 NOTE: Autocompletion won't work until the | 491 NOTE: Autocompletion won't work until the |
492 command is defined. An alternative is to | 492 command is defined. An alternative is to |
493 always define the user command and have it | 493 always define the user command and have it |
494 invoke an autoloaded function. See |autoload|. | 494 invoke an autoloaded function. See |autoload|. |
495 *CmdlineEnter* | |
496 CmdlineEnter After moving the cursor to the command line, | |
497 where the user can type a command or search | |
498 string. | |
499 <afile> is set to a single character, | |
500 indicating the type of command-line. | |
501 |cmdwin-char| | |
502 *CmdlineLeave* | |
503 CmdlineLeave Before leaving the command line. | |
504 <afile> is set to a single character, | |
505 indicating the type of command-line. | |
506 |cmdwin-char| | |
495 *CmdwinEnter* | 507 *CmdwinEnter* |
496 CmdwinEnter After entering the command-line window. | 508 CmdwinEnter After entering the command-line window. |
497 Useful for setting options specifically for | 509 Useful for setting options specifically for |
498 this special type of window. This is | 510 this special type of window. This is |
499 triggered _instead_ of BufEnter and WinEnter. | 511 triggered _instead_ of BufEnter and WinEnter. |