aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorPloum <1233155+ploum@users.noreply.github.com>2023-11-14 11:56:50 +0100
committerGitHub <noreply@github.com>2023-11-14 02:56:50 -0800
commit5b45efbee6ebb64269469b636baac5248e83421f (patch)
tree5af8d80b27ae4003b8d58a2f44b5b3e7b4c49f48 /runtime
parent582d7f47905d82f315dc852a9d2937cd5b655e55 (diff)
downloadrneovim-5b45efbee6ebb64269469b636baac5248e83421f.tar.gz
rneovim-5b45efbee6ebb64269469b636baac5248e83421f.tar.bz2
rneovim-5b45efbee6ebb64269469b636baac5248e83421f.zip
fix(defaults): set 'fsync' #26034
Problem: 'nofsync' may lose data if the system has a hard shutdown. #9888 Solution: Change default to 'fsync'. This may be revisited in the future when 'nofsync' can be made safer.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/vim_diff.txt1
2 files changed, 1 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 7f2eb9da07..603b777f55 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -2796,7 +2796,7 @@ A jump table for the options with a short description can be found at |Q_op|.
security reasons.
*'fsync'* *'fs'* *'nofsync'* *'nofs'*
-'fsync' 'fs' boolean (default off)
+'fsync' 'fs' boolean (default on)
global
When on, the OS function fsync() will be called after saving a file
(|:write|, |writefile()|, …), |swap-file|, |undo-persistence| and |shada-file|.
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 1e12ccd7cc..05d7e5feb9 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -47,7 +47,6 @@ Defaults *nvim-defaults*
- 'encoding' is UTF-8 (cf. 'fileencoding' for file-content encoding)
- 'fillchars' defaults (in effect) to "vert:│,fold:·,foldsep:│"
- 'formatoptions' defaults to "tcqj"
-- 'fsync' is disabled
- 'hidden' is enabled
- 'history' defaults to 10000 (the maximum)
- 'hlsearch' is enabled