@@ -268,7 +268,6 @@ Name triggered by ~
268268| BufCreate | just after adding a buffer to the buffer list
269269| BufDelete | before deleting a buffer from the buffer list
270270| BufWipeout | before completely deleting a buffer
271- | TerminalOpen | after a terminal buffer was created
272271
273272| BufFilePre | before changing the name of the current buffer
274273| BufFilePost | after changing the name of the current buffer
@@ -302,6 +301,10 @@ Name triggered by ~
302301| VimLeavePre | before exiting Vim, before writing the viminfo file
303302| VimLeave | before exiting Vim, after writing the viminfo file
304303
304+ Terminal
305+ | TerminalOpen | after a terminal buffer was created
306+ | TerminalWinOpen | after a terminal buffer was created in a new window
307+
305308 Various
306309| FileChangedShell | Vim notices that a file changed since editing started
307310| FileChangedShellPost | After handling a file changed since editing started
@@ -1081,6 +1084,12 @@ TerminalOpen Just after a terminal buffer was created, with
10811084 `:terminal ` or | term_start() | . This event is
10821085 triggered even if the buffer is created
10831086 without a window, with the ++hidden option.
1087+ *TerminalWinOpen*
1088+ TerminalWinOpen Just after a terminal buffer was created, with
1089+ `:terminal ` or | term_start() | . This event is
1090+ triggered only if the buffer is created
1091+ with a window. Can be used to set window
1092+ local options for the terminal window.
10841093 *TermResponse*
10851094TermResponse After the response to | t_RV | is received from
10861095 the terminal. The value of | v:termresponse |
0 commit comments