aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-01-28 11:36:40 +0100
committerMarc André Tanner <mat@brain-dump.org>2020-01-28 11:44:26 +0100
commit91d49a0dd0feac1a97b63091ce7f6f32e619fff8 (patch)
tree6d5dfb262da796a7b97f4393b33fff9a189365fb /man
parentef74b81681de576881fe7533b851332d4660d967 (diff)
downloadvis-91d49a0dd0feac1a97b63091ce7f6f32e619fff8.tar.gz
vis-91d49a0dd0feac1a97b63091ce7f6f32e619fff8.tar.xz
vis: support an optional exit status in :q and :qall commands
This can for example be used to abort git commit messages with :q! 1.
Diffstat (limited to 'man')
-rw-r--r--man/vis.16
1 files changed, 3 insertions, 3 deletions
diff --git a/man/vis.1 b/man/vis.1
index 0b77656..7cb1aa9 100644
--- a/man/vis.1
+++ b/man/vis.1
@@ -1206,11 +1206,11 @@ split window horizontally
.It Ic :vsplit Op Ar file name
split window vertically
.
-.It Ic :q Ns Op Cm "!"
+.It Ic :q Ns Oo Cm "!" Oc Op Ar exit code
close currently focused window
.
-.It Ic :qall Ns Op Cm "!"
-close all windows, exit editor
+.It Ic :qall Ns Oo Cm "!" Oc Op Ar exit code
+close all windows, terminate editor with exit code (defaults to 0)
.El
.Pp
Commands taking a file name will invoke the