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 /src/vim.h | |
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 'src/vim.h')
-rw-r--r-- | src/vim.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |