From 91d49a0dd0feac1a97b63091ce7f6f32e619fff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 28 Jan 2020 11:36:40 +0100 Subject: 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. --- man/vis.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'man/vis.1') 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 -- cgit v1.2.3