aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/autocmd.txt
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc/autocmd.txt')
-rw-r--r--runtime/doc/autocmd.txt28
1 files changed, 13 insertions, 15 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 6b39f1a103..05a4167b48 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
+|UIEnter| after a UI attaches
+|UILeave| 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,17 @@ 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*
+ *UIEnter*
+UIEnter After a UI connects via |nvim_ui_attach()|,
+ after VimEnter. Can be used for GUI-specific
+ configuration.
+ Sets these |v:event| keys:
+ chan
+ *UILeave*
+UILeave After a UI disconnects from Nvim.
+ Sets these |v:event| keys:
+ chan
+ *InsertChange*
InsertChange When typing <Insert> while in Insert or
Replace mode. The |v:insertmode| variable
indicates the new mode.