summaryrefslogtreecommitdiff
path: root/src/vim.h
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 /src/vim.h
parent20d89e0ac65686481f97657008deede0b39ef5db (diff)
downloadvim-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 'src/vim.h')
-rw-r--r--src/vim.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vim.h b/src/vim.h
index c43ec83e6..5ae8b7931 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1298,7 +1298,8 @@ enum auto_event
EVENT_INSERTCHANGE, // when changing Insert/Replace mode
EVENT_INSERTCHARPRE, // before inserting a char
EVENT_INSERTENTER, // when entering Insert mode
- EVENT_INSERTLEAVE, // when leaving Insert mode
+ EVENT_INSERTLEAVEPRE, // just before leaving Insert mode
+ EVENT_INSERTLEAVE, // just after leaving Insert mode
EVENT_MENUPOPUP, // just before popup menu is displayed
EVENT_OPTIONSET, // option was set
EVENT_QUICKFIXCMDPOST, // after :make, :grep etc.
@@ -1325,7 +1326,8 @@ enum auto_event
EVENT_TABNEW, // when entering a new tab page
EVENT_TERMCHANGED, // after changing 'term'
EVENT_TERMINALOPEN, // after a terminal buffer was created
- EVENT_TERMINALWINOPEN, // after a terminal buffer was created and entering its window
+ EVENT_TERMINALWINOPEN, // after a terminal buffer was created and
+ // entering its window
EVENT_TERMRESPONSE, // after setting "v:termresponse"
EVENT_TEXTCHANGED, // text was modified not in Insert mode
EVENT_TEXTCHANGEDI, // text was modified in Insert mode