Mercurial > vim
diff runtime/doc/autocmd.txt @ 13444:9f06f7aca74c v8.0.1596
patch 8.0.1596: no autocommand specifically for opening a terminal window
commit https://github.com/vim/vim/commit/b852c3e64d319d6ec47dd780c8654ae095e1d8c2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 11 16:55:36 2018 +0100
patch 8.0.1596: no autocommand specifically for opening a terminal window
Problem: No autocommand specifically for opening a terminal window.
Solution: Add TerminalOpen. (?, closes https://github.com/vim/vim/issues/2484)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 11 Mar 2018 17:00:08 +0100 |
parents | 94e638936d3e |
children | 9eebe457eb3c |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -257,6 +257,7 @@ Name triggered by ~ |BufCreate| just after adding a buffer to the buffer list |BufDelete| before deleting a buffer from the buffer list |BufWipeout| before completely deleting a buffer +|TerminalOpen| after a terminal buffer was created |BufFilePre| before changing the name of the current buffer |BufFilePost| after changing the name of the current buffer @@ -328,6 +329,10 @@ Name triggered by ~ |CmdlineEnter| after the cursor moves to the command line |CmdlineLeave| before the cursor leaves the command line +|CmdlineChanged| after a change was made to the command-line text +|CmdlineEnter| after the cursor moves to the command line +|CmdlineLeave| before the cursor leaves the command line + |InsertEnter| starting Insert mode |InsertChange| when typing <Insert> while in Insert or Replace mode |InsertLeave| when leaving Insert mode @@ -968,6 +973,11 @@ TermChanged After the value of 'term' for re-loading the syntax file to update the colors, fonts and other terminal-dependent settings. Executed for all loaded buffers. + *TerminalOpen* +TerminalOpen Just after a terminal buffer was created, with + `:terminal` or |term_start()|. This event is + triggered even if the buffer is created + without a window, with the ++hidden option. *TermResponse* TermResponse After the response to |t_RV| is received from the terminal. The value of |v:termresponse|