From b531213d198405ba0ff1a2982d8b258fb10d7697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 14 Dec 2016 13:37:47 +0100 Subject: vis: add new :set savemethod auto|atomic|inplace option Specifies how the current file should be saved, `atomic` which uses rename(2) to atomically replace the file, `inplace` which truncates the file and then rewrites it or `auto` which tries the former before falling back to the latter. The rename method fails for symlinks, hardlinks, in case of insufficient directory permissions or when either the file owner, group, POSIX ACL or SELinux labels can not be restored. The option defaults to `auto`. --- man/vis.1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'man') diff --git a/man/vis.1 b/man/vis.1 index 64d4c6a..76cfdfc 100644 --- a/man/vis.1 +++ b/man/vis.1 @@ -1111,6 +1111,19 @@ Whether to display replacement symbol instead of tabs. Whether to display replacement symbol instead of newlines. .It Cm show-spaces Bq off Whether to display replacement symbol instead of blank cells. +.It Cm savemethod Bq auto +How the current file should be saved, +.Sy atomic +which uses +.Xr rename 2 +to atomically replace the file, +.Sy inplace +which truncates the file and then rewrites it or +.Sy auto +which tries the former before falling back to the latter. The rename +method fails for symlinks, hardlinks, in case of insufficient directory +permissions or when either the file owner, group, POSIX ACL or SELinux +labels can not be restored. .El . .Sh CONFIGURATION -- cgit v1.2.3