aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-14 13:37:47 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-12-14 14:44:49 +0100
commitb531213d198405ba0ff1a2982d8b258fb10d7697 (patch)
tree3bc3456b7fe4ddb9a66605e9c15a17457e7ec97f /man
parente80d859867e515d95492e61bf5dca08a1c325130 (diff)
downloadvis-b531213d198405ba0ff1a2982d8b258fb10d7697.tar.gz
vis-b531213d198405ba0ff1a2982d8b258fb10d7697.tar.xz
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`.
Diffstat (limited to 'man')
-rw-r--r--man/vis.113
1 files changed, 13 insertions, 0 deletions
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