aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-28 15:28:57 -0500
committerGitHub <noreply@github.com>2020-11-28 21:28:57 +0100
commita35c54b2aefc5baa720d98a9ba8c613bc40f694a (patch)
treee5bc069c2bf5c4c2d3030060fa0a9c7e545e41d7 /runtime
parent7294a20bbc64c646fcfe03c1e5519da348f258fe (diff)
downloadrneovim-a35c54b2aefc5baa720d98a9ba8c613bc40f694a.tar.gz
rneovim-a35c54b2aefc5baa720d98a9ba8c613bc40f694a.tar.bz2
rneovim-a35c54b2aefc5baa720d98a9ba8c613bc40f694a.zip
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 <erw7.github@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/quickfix.txt17
1 files changed, 11 insertions, 6 deletions
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].