mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 02:21:51 +00:00
Add v:exiting
Contains the exit value nvim will use. Before exiting, it is v:null. That way jobs or autocmds (in VimLeavePre or VimLeave) can check if Neovim is about to quit and with what exit value. Closes #4666.
This commit is contained in:
@@ -1383,6 +1383,9 @@ v:dying Normally zero. When a deadly signal is caught it's set to
|
||||
< Note: if another deadly signal is caught when v:dying is one,
|
||||
VimLeave autocommands will not be executed.
|
||||
|
||||
*v:exiting* *exiting-variable*
|
||||
v:exiting The exit value Nvim will use. Before exiting, it is |v:null|.
|
||||
|
||||
*v:errmsg* *errmsg-variable*
|
||||
v:errmsg Last given error message. It's allowed to set this variable.
|
||||
Example: >
|
||||
|
||||
Reference in New Issue
Block a user