summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-19 22:31:36 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-19 22:31:36 +0200
commitc917da4b3e8801a255dbefea8e4ed19c1c716dd8 (patch)
tree4c4ca7b3b658f666aa781e2f9e51e9dafc57f6d6 /src/vim.h
parent0a0f641b9841189ba4180758109d04d0a26e50e3 (diff)
downloadvim-c917da4b3e8801a255dbefea8e4ed19c1c716dd8.zip
patch 7.4.2075
Problem: No autocommand event to initialize a window or tab page. Solution: Add WinNew and TabNew events. (partly by Felipe Morales)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vim.h b/src/vim.h
index c6e29a0ab..d9a60dd6b 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1315,6 +1315,7 @@ enum auto_event
EVENT_VIMRESIZED, /* after Vim window was resized */
EVENT_WINENTER, /* after entering a window */
EVENT_WINLEAVE, /* before leaving a window */
+ EVENT_WINNEW, /* when entering a new window */
EVENT_ENCODINGCHANGED, /* after changing the 'encoding' option */
EVENT_INSERTCHARPRE, /* before inserting a char */
EVENT_CURSORHOLD, /* cursor in same position for a while */
@@ -1327,8 +1328,9 @@ enum auto_event
EVENT_SPELLFILEMISSING, /* spell file missing */
EVENT_CURSORMOVED, /* cursor was moved */
EVENT_CURSORMOVEDI, /* cursor was moved in Insert mode */
- EVENT_TABLEAVE, /* before leaving a tab page */
EVENT_TABENTER, /* after entering a tab page */
+ EVENT_TABLEAVE, /* before leaving a tab page */
+ EVENT_TABNEW, /* when entering a new tab page */
EVENT_SHELLCMDPOST, /* after ":!cmd" */
EVENT_SHELLFILTERPOST, /* after ":1,2!cmd", ":w !cmd", ":r !cmd". */
EVENT_TEXTCHANGED, /* text was modified */