diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-21 12:19:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-21 12:19:53 +0200 |
commit | b53e13a91ab2fc9d52bd044715daa84972f4ce47 (patch) | |
tree | 6df807962d3719c50e6c33beaeaf8bc23ab8b12e /runtime | |
parent | 20d89e0ac65686481f97657008deede0b39ef5db (diff) | |
download | vim-git-b53e13a91ab2fc9d52bd044715daa84972f4ce47.tar.gz |
patch 8.2.1874: can't do something just before leaving Insert modev8.2.1874
Problem: Can't do something just before leaving Insert mode.
Solution: Add the InsertLeavePre autocommand event. (closes #7177)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 9355d1f40..f15cd96f0 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -881,9 +881,14 @@ InsertEnter Just before starting Insert mode. Also for The cursor is restored afterwards. If you do not want that set |v:char| to a non-empty string. + *InsertLeavePre* +InsertLeavePre Just before leaving Insert mode. Also when + using CTRL-O |i_CTRL-O|. Be caseful not to + change mode or use `:normal`, it will likely + cause trouble. *InsertLeave* -InsertLeave When leaving Insert mode. Also when using - CTRL-O |i_CTRL-O|. But not for |i_CTRL-C|. +InsertLeave Just after leaving Insert mode. Also when + using CTRL-O |i_CTRL-O|. But not for |i_CTRL-C|. *MenuPopup* MenuPopup Just before showing the popup menu (under the right mouse button). Useful for adjusting the |