diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-12 16:08:22 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-12 17:04:05 -0700 |
commit | 589f612adfea22b688618fa90e011f5494ca5204 (patch) | |
tree | 05d55149f75fc76e5045ccccabf242e1955ca5fd /runtime | |
parent | 44d45e29ea4a632e66ac63d25d355a5a4c7178bc (diff) | |
download | rneovim-589f612adfea22b688618fa90e011f5494ca5204.tar.gz rneovim-589f612adfea22b688618fa90e011f5494ca5204.tar.bz2 rneovim-589f612adfea22b688618fa90e011f5494ca5204.zip |
rename: UIAttach/UIDetach => UIEnter/UILeave
"enter"/"leave" is more conventional for Vim events, and
"attach"/"detach" distinction does not gain much.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 12 | ||||
-rw-r--r-- | runtime/doc/deprecated.txt | 2 | ||||
-rw-r--r-- | runtime/doc/gui.txt | 4 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 4e55122916..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 -|UIAttach| after a UI attaches -|UIDetach| after a UI detaches +|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,14 +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|. - *UIAttach* -UIAttach After a UI connects via |nvim_ui_attach()|, + *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 - *UIDetach* -UIDetach After a UI detaches from Nvim. + *UILeave* +UILeave After a UI disconnects from Nvim. Sets these |v:event| keys: chan *InsertChange* diff --git a/runtime/doc/deprecated.txt b/runtime/doc/deprecated.txt index 77d687cf0f..b76a37810c 100644 --- a/runtime/doc/deprecated.txt +++ b/runtime/doc/deprecated.txt @@ -28,7 +28,7 @@ Environment Variables ~ Events ~ *EncodingChanged* Never fired; 'encoding' is always "utf-8". *FileEncoding* Never fired; equivalent to |EncodingChanged|. -*GUIEnter* Never fired; use |UIAttach| instead. +*GUIEnter* Never fired; use |UIEnter| instead. *GUIFailed* Never fired. Keycodes ~ diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt index bba38b7607..0df776010b 100644 --- a/runtime/doc/gui.txt +++ b/runtime/doc/gui.txt @@ -12,11 +12,11 @@ Nvim Graphical User Interface *gui* *GUI* Starting the GUI *gui-start* *E229* *E233* *ginit.vim* *gui-init* *gvimrc* *$MYGVIMRC* -For GUI-specific configuration Nvim provides the |UIAttach| event. This +For GUI-specific configuration Nvim provides the |UIEnter| event. This happens after other |initialization|s, like reading your vimrc file. Example: this sets "g:gui" to the value of the UI's "rgb" field: > - :autocmd UIAttach * let g:gui = filter(nvim_list_uis(),{k,v-> v.chan==v:event.chan})[0].rgb + :autocmd UIEnter * let g:gui = filter(nvim_list_uis(),{k,v-> v.chan==v:event.chan})[0].rgb < *:winp* *:winpos* *E188* diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index b96e9892a2..45a94bb961 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -154,8 +154,8 @@ Events: |TermClose| |TermOpen| |TextYankPost| - |UIAttach| - |UIDetach| + |UIEnter| + |UILeave| |VimResume| |VimSuspend| |