comparison src/vim.h @ 25790:16a7d1154be8 v8.2.3430

patch 8.2.3430: no generic way to trigger an autocommand on mode change Commit: https://github.com/vim/vim/commit/f1e8876fa2359b572d262772747405d3616db670 Author: =?UTF-8?q?Magnus=20Gro=C3=9F?= <magnus.gross@rwth-aachen.de> Date: Sun Sep 12 13:39:55 2021 +0200 patch 8.2.3430: no generic way to trigger an autocommand on mode change Problem: No generic way to trigger an autocommand on mode change. Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes https://github.com/vim/vim/issues/8856)
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Sep 2021 13:45:05 +0200
parents 154663508d9b
children e8873138ffbb
comparison
equal deleted inserted replaced
25789:3afd5ab3d69a 25790:16a7d1154be8
685 #define SHOWMATCH (0x700 + INSERT) // show matching paren 685 #define SHOWMATCH (0x700 + INSERT) // show matching paren
686 #define CONFIRM 0x800 // ":confirm" prompt 686 #define CONFIRM 0x800 // ":confirm" prompt
687 #define SELECTMODE 0x1000 // Select mode, only for mappings 687 #define SELECTMODE 0x1000 // Select mode, only for mappings
688 #define TERMINAL 0x2000 // Terminal mode 688 #define TERMINAL 0x2000 // Terminal mode
689 #define MODE_ALL 0xffff 689 #define MODE_ALL 0xffff
690
691 #define MODE_MAX_LENGTH 4 // max mode length returned in mode()
690 692
691 // all mode bits used for mapping 693 // all mode bits used for mapping
692 #define MAP_ALL_MODES (0x3f | SELECTMODE | TERMINAL) 694 #define MAP_ALL_MODES (0x3f | SELECTMODE | TERMINAL)
693 695
694 // directions 696 // directions
1315 EVENT_INSERTCHARPRE, // before inserting a char 1317 EVENT_INSERTCHARPRE, // before inserting a char
1316 EVENT_INSERTENTER, // when entering Insert mode 1318 EVENT_INSERTENTER, // when entering Insert mode
1317 EVENT_INSERTLEAVEPRE, // just before leaving Insert mode 1319 EVENT_INSERTLEAVEPRE, // just before leaving Insert mode
1318 EVENT_INSERTLEAVE, // just after leaving Insert mode 1320 EVENT_INSERTLEAVE, // just after leaving Insert mode
1319 EVENT_MENUPOPUP, // just before popup menu is displayed 1321 EVENT_MENUPOPUP, // just before popup menu is displayed
1322 EVENT_MODECHANGED, // after changing the mode
1320 EVENT_OPTIONSET, // option was set 1323 EVENT_OPTIONSET, // option was set
1321 EVENT_QUICKFIXCMDPOST, // after :make, :grep etc. 1324 EVENT_QUICKFIXCMDPOST, // after :make, :grep etc.
1322 EVENT_QUICKFIXCMDPRE, // before :make, :grep etc. 1325 EVENT_QUICKFIXCMDPRE, // before :make, :grep etc.
1323 EVENT_QUITPRE, // before :quit 1326 EVENT_QUITPRE, // before :quit
1324 EVENT_REMOTEREPLY, // upon string reception from a remote vim 1327 EVENT_REMOTEREPLY, // upon string reception from a remote vim