diff options
author | Josh Leeb-du Toit <josh.leebdutoit@gmail.com> | 2017-09-29 01:12:56 +1000 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-10-22 13:02:31 +0200 |
commit | 9db42d4ce99c5b5747e9d83045b37e93d55c4249 (patch) | |
tree | 2914d827644bef6bd69ad961da686c300953bb2c /runtime/doc/quickfix.txt | |
parent | bead15f10dbdd71c0091bbfa18ec0aab9b8b2e82 (diff) | |
download | rneovim-9db42d4ce99c5b5747e9d83045b37e93d55c4249.tar.gz rneovim-9db42d4ce99c5b5747e9d83045b37e93d55c4249.tar.bz2 rneovim-9db42d4ce99c5b5747e9d83045b37e93d55c4249.zip |
:cquit : take an error code argument #7336
closes #2699
ex_cmds.lua: use flags consistent with similar commands such as `cnext`.
upstream discussion:
"[patch] :qcuit can take exit code"
https://groups.google.com/d/msg/vim_dev/_PjyNbUKyRc/oPgr5_ZXc6AJ
Diffstat (limited to 'runtime/doc/quickfix.txt')
-rw-r--r-- | runtime/doc/quickfix.txt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index 46ddaefbf4..a647318347 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -138,11 +138,15 @@ processing a quickfix or location list command, it will be aborted. current window is used instead of the quickfix list. *:cq* *:cquit* -:cq[uit][!] Quit Vim with an error code, so that the compiler - will not compile the same file again. - WARNING: All changes in files are lost! Also when the - [!] is not used. It works like ":qall!" |:qall|, - except that Vim returns a non-zero exit code. +:[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. + + WARNING: All changes in files are lost. It works like + ":qall!" |:qall|, except that Nvim exits non-zero or + [count]. *:cf* *:cfile* :cf[ile][!] [errorfile] Read the error file and jump to the first error. @@ -1534,4 +1538,4 @@ by Vim. - vim:tw=78:ts=8:ft=help:norl: + vim:noet:tw=78:ts=8:ft=help:norl: |