aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-04-03 22:29:45 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-04-04 06:04:28 +0800
commit20e46cb38d4282be625bd44813670e9edfd3284e (patch)
tree7d1682f953935821da5680028face8d18f1fb2cf /runtime/lua/vim/_meta/options.lua
parent76a917a81e32acd8946981e72eedb2eb255db445 (diff)
downloadrneovim-20e46cb38d4282be625bd44813670e9edfd3284e.tar.gz
rneovim-20e46cb38d4282be625bd44813670e9edfd3284e.tar.bz2
rneovim-20e46cb38d4282be625bd44813670e9edfd3284e.zip
vim-patch:af58a9f: runtime(doc): adjust :h 'autowrite' and :h 'autowriteall'
- Don't go over 78 columns. - Change the first "and" to "or", as "or" is used below. - Change "takes one" to "switches", as "one" may be mistaken as referring to the command instead of the user. - Use backticks in :h 'autowriteall' like in :h 'autowrite'. closes: vim/vim#19859 https://github.com/vim/vim/commit/af58a9f5e9e0bf748700645d07c6262eb281d737
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 35dea8b68b..383c1dac5b 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -189,10 +189,10 @@ vim.go.autoread = vim.o.autoread
vim.go.ar = vim.go.autoread
--- Write the contents of the file, if it has been modified, on each
---- `:next`, `:rewind`, `:last`, `:first`, `:previous`, `:stop`,
---- `:suspend`, `:tag`, `:!`, `:make`, `:terminal`, CTRL-] and CTRL-^ command; and when
---- a `:buffer`, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command takes one
---- to another file.
+--- `:next`, `:rewind`, `:last`, `:first`, `:previous`, `:tag`, `:stop`,
+--- `:suspend`, `:!`, `:make`, `:terminal`, CTRL-] or CTRL-^ command; and
+--- when a `:buffer`, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command
+--- switches to another file.
--- A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is
--- set to "hide" and `:next` is used.
--- Note that for some commands the 'autowrite' option is not used, see
@@ -209,8 +209,8 @@ vim.o.aw = vim.o.autowrite
vim.go.autowrite = vim.o.autowrite
vim.go.aw = vim.go.autowrite
---- Like 'autowrite', but also used for commands ":edit", ":enew",
---- ":quit", ":qall", ":exit", ":xit", ":recover" and closing the Vim
+--- Like 'autowrite', but also used for commands `:edit`, `:enew`,
+--- `:quit`, `:qall`, `:exit`, `:xit`, `:recover` and closing the Vim
--- window.
--- Setting this option also implies that Vim behaves like 'autowrite' has
--- been set.