Mercurial > vim
diff runtime/doc/autocmd.txt @ 22651:fba5ccf33794 v8.2.1874
patch 8.2.1874: can't do something just before leaving Insert mode
Commit: https://github.com/vim/vim/commit/b53e13a91ab2fc9d52bd044715daa84972f4ce47
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 21 12:19:53 2020 +0200
patch 8.2.1874: can't do something just before leaving Insert mode
Problem: Can't do something just before leaving Insert mode.
Solution: Add the InsertLeavePre autocommand event. (closes https://github.com/vim/vim/issues/7177)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Oct 2020 12:30:06 +0200 |
parents | a3bb84cd0f59 |
children | 5b7ea82bc18f |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -881,9 +881,14 @@ InsertEnter Just before starting Inser 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