From a35c54b2aefc5baa720d98a9ba8c613bc40f694a Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 28 Nov 2020 15:28:57 -0500 Subject: vim-patch:8.2.0095: cannot specify exit code for :cquit (#13407) Problem: Cannot specify exit code for :cquit. Solution: Add optional argument. (Thinca, Yegappan Lakshmanan, closes vim/vim#5442) https://github.com/vim/vim/commit/1860bde9d31bbb0ba857f6284f6332a7134030dd Co-authored-by: erw7 --- runtime/doc/quickfix.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'runtime/doc') diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index 9da11a553d..d6ff3ea9ea 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -187,12 +187,17 @@ processing a quickfix or location list command, it will be aborted. current window is used instead of the quickfix list. *:cq* *:cquit* -:[count]cq[uit] Quit Nvim with an error code, or the code specified in - [count]. Useful when Nvim is called from another - program: e.g. `git commit` will abort the comitting - process, `fc` (built-in for shells like bash and zsh) - will not execute the command. - +:cq[uit][!] +:{N}cq[uit][!] +:cq[uit][!] {N} Quit Vim with error code {N}. {N} defaults to one. + Useful when Vim is called from another program: + e.g., a compiler will not compile the same file again, + `git commit` will abort the committing process, `fc` + (built-in for shells like bash and zsh) will not + execute the command, etc. will not compile the same + file again. + {N} can also be zero, in which case Vim exits + normally. WARNING: All changes in files are lost. It works like ":qall!" |:qall|, except that Nvim exits non-zero or [count]. -- cgit