aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-20 23:45:14 -0500
committerGitHub <noreply@github.com>2021-02-20 23:45:14 -0500
commit595f6e4d64bc2b44d8b9102706a84a16ed166199 (patch)
tree198d839428d556411d8e13d6ba4c9574690dc746 /runtime
parent1caf58578c6e4b30c18fa56804dd905b5472b460 (diff)
downloadrneovim-595f6e4d64bc2b44d8b9102706a84a16ed166199.tar.gz
rneovim-595f6e4d64bc2b44d8b9102706a84a16ed166199.tar.bz2
rneovim-595f6e4d64bc2b44d8b9102706a84a16ed166199.zip
vim-patch:8.2.2070: can't get the exit value in VimLeave(Pre) autocommands (#13981)
Problem: Can't get the exit value in VimLeave or VimLeavePre autocommands. Solution: Add v:exiting like in Neovim. (Yegappan Lakshmanan, closes vim/vim#7395) https://github.com/vim/vim/commit/f0068c5154a99b86b2c4515a4b93c003b2445cf4 Rearrange VimVarIndex enums and vimvars[] entries to sync with Vim. N/A patches for version.c: vim-patch:8.2.2535: MS-Windows: cannot run all vim9 tests Problem: MS-Windows: cannot run all vim9 tests. Solution: Make test_vim9 target work. https://github.com/vim/vim/commit/723ef5db980b2e69ef8bdc0dd448cb645491c464
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index b96fc4ac01..84af7e4f32 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1541,7 +1541,10 @@ v:dying Normally zero. When a deadly signal is caught it's set to
VimLeave autocommands will not be executed.
*v:exiting* *exiting-variable*
-v:exiting Exit code, or |v:null| if not exiting. |VimLeave|
+v:exiting Exit code, or |v:null| before invoking the |VimLeavePre|
+ and |VimLeave| autocmds. See |:q|, |:x| and |:cquit|.
+ Example: >
+ :au VimLeave * echo "Exit value is " .. v:exiting
*v:echospace* *echospace-variable*
v:echospace Number of screen cells that can be used for an `:echo` message