From 147b03e7d01464030955976e08028bcd337f9ff5 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Tue, 22 Nov 2016 14:53:07 +0100 Subject: 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. --- runtime/doc/eval.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 254cf8b418..cca53db531 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -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: > -- cgit