summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-21 12:19:53 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-21 12:19:53 +0200
commitb53e13a91ab2fc9d52bd044715daa84972f4ce47 (patch)
tree6df807962d3719c50e6c33beaeaf8bc23ab8b12e /runtime
parent20d89e0ac65686481f97657008deede0b39ef5db (diff)
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.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 9355d1f405..f15cd96f04 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