From e9cf515888705640ebd754483349f2bf84c32255 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Wed, 21 Jun 2017 16:59:52 +0100 Subject: UIAttach, UIDetach --- runtime/doc/autocmd.txt | 25 ++++++++++--------------- runtime/doc/deprecated.txt | 2 ++ runtime/doc/vim_diff.txt | 2 ++ 3 files changed, 14 insertions(+), 15 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 6b39f1a103..0fab2bd24f 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -280,8 +280,8 @@ Name triggered by ~ Startup and exit |VimEnter| after doing all the startup stuff -|GUIEnter| after starting the GUI successfully -|GUIFailed| after starting the GUI failed +|UIAttach| after a new UI attaches +|UIDetach| after a UI detaches |TermResponse| after the terminal response to t_RV is received |QuitPre| when using `:quit`, before deciding whether to exit |ExitPre| when using a command that may make Vim exit @@ -805,19 +805,14 @@ FuncUndefined When a user function is used but it isn't NOTE: When writing Vim scripts a better alternative is to use an autoloaded function. See |autoload-functions|. - *GUIEnter* -GUIEnter After starting the GUI successfully, and after - opening the window. It is triggered before - VimEnter when using gvim. Can be used to - position the window from a gvimrc file: > - :autocmd GUIEnter * winpos 100 50 -< *GUIFailed* -GUIFailed After starting the GUI failed. Vim may - continue to run in the terminal, if possible - (only on Unix and alikes, when connecting the - X server fails). You may want to quit Vim: > - :autocmd GUIFailed * qall -< *InsertChange* + {Nvim} *UIAttach* +UIAttach After a new UI connects to nvim and successfully + calls |nvim_ui_attach|. Sets chan in |v:event| with + the channel id or 0 if using the internal UI. + {Nvim} *UIDetach* +UIDetach After a UI detaches from nvim. Sets chan in |v:event| + with the channel id or 0 if using the internal UI. + *InsertChange* InsertChange When typing while in Insert or Replace mode. The |v:insertmode| variable indicates the new mode. diff --git a/runtime/doc/deprecated.txt b/runtime/doc/deprecated.txt index 27e60be368..c26ddf8fe8 100644 --- a/runtime/doc/deprecated.txt +++ b/runtime/doc/deprecated.txt @@ -28,6 +28,8 @@ Environment Variables ~ Events ~ *EncodingChanged* Never fired; 'encoding' is always "utf-8". *FileEncoding* Never fired; equivalent to |EncodingChanged|. +*GUIEnter* Never fired; Use |UIAttach| instead. +*GUIFailed* Never fired. Keycodes ~ ** Use instead. diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 7381ae4e2b..b96e9892a2 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -154,6 +154,8 @@ Events: |TermClose| |TermOpen| |TextYankPost| + |UIAttach| + |UIDetach| |VimResume| |VimSuspend| -- cgit