Skip to content

Commit af58a9f

Browse files
zeertzjqchrisbra
authored andcommitted
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: #19859 Signed-off-by: zeertzjq <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 71a0a55 commit af58a9f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

runtime/doc/options.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.2. Last change: 2026 Apr 01
1+
*options.txt* For Vim version 9.2. Last change: 2026 Apr 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1030,10 +1030,10 @@ A jump table for the options with a short description can be found at |Q_op|.
10301030
'autowrite' 'aw' boolean (default off)
10311031
global
10321032
Write the contents of the file, if it has been modified, on each
1033-
`:next`, `:rewind`, `:last`, `:first`, `:previous`, `:stop`,
1034-
`:suspend`, `:tag`, `:!`, `:make`, `:terminal`, CTRL-] and CTRL-^ command; and when
1035-
a `:buffer`, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command takes one
1036-
to another file.
1033+
`:next`, `:rewind`, `:last`, `:first`, `:previous`, `:tag`, `:stop`,
1034+
`:suspend`, `:!`, `:make`, `:terminal`, CTRL-] or CTRL-^ command; and
1035+
when a `:buffer`, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command
1036+
switches to another file.
10371037
A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is
10381038
set to "hide" and `:next` is used.
10391039
Note that for some commands the 'autowrite' option is not used, see
@@ -1047,8 +1047,8 @@ A jump table for the options with a short description can be found at |Q_op|.
10471047
*'autowriteall'* *'awa'* *'noautowriteall'* *'noawa'*
10481048
'autowriteall' 'awa' boolean (default off)
10491049
global
1050-
Like 'autowrite', but also used for commands ":edit", ":enew",
1051-
":quit", ":qall", ":exit", ":xit", ":recover" and closing the Vim
1050+
Like 'autowrite', but also used for commands `:edit`, `:enew`,
1051+
`:quit`, `:qall`, `:exit`, `:xit`, `:recover` and closing the Vim
10521052
window.
10531053
Setting this option also implies that Vim behaves like 'autowrite' has
10541054
been set.

0 commit comments

Comments
 (0)