mirror of
https://github.com/neovim/neovim
synced 2025-07-20 03:02:17 +00:00
vim-patch:df62c62: runtime(doc): grammar fixes in options.txt (#29729)
closes: vim/vim#15265df62c62177
Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com> (cherry picked from commitc2b51e6c41
)
This commit is contained in:
committed by
github-actions[bot]
parent
a333847f6b
commit
a03cc83bfb
@ -1092,7 +1092,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
applying 'breakindent', even if the resulting
|
applying 'breakindent', even if the resulting
|
||||||
text should normally be narrower. This prevents
|
text should normally be narrower. This prevents
|
||||||
text indented almost to the right window border
|
text indented almost to the right window border
|
||||||
occupying lot of vertical space when broken.
|
occupying lots of vertical space when broken.
|
||||||
(default: 20)
|
(default: 20)
|
||||||
shift:{n} After applying 'breakindent', the wrapped line's
|
shift:{n} After applying 'breakindent', the wrapped line's
|
||||||
beginning will be shifted by the given number of
|
beginning will be shifted by the given number of
|
||||||
@ -3439,7 +3439,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
in Insert mode as specified with the 'indentkeys' option.
|
in Insert mode as specified with the 'indentkeys' option.
|
||||||
When this option is not empty, it overrules the 'cindent' and
|
When this option is not empty, it overrules the 'cindent' and
|
||||||
'smartindent' indenting. When 'lisp' is set, this option is
|
'smartindent' indenting. When 'lisp' is set, this option is
|
||||||
is only used when 'lispoptions' contains "expr:1".
|
only used when 'lispoptions' contains "expr:1".
|
||||||
The expression is evaluated with |v:lnum| set to the line number for
|
The expression is evaluated with |v:lnum| set to the line number for
|
||||||
which the indent is to be computed. The cursor is also in this line
|
which the indent is to be computed. The cursor is also in this line
|
||||||
when the expression is evaluated (but it may be moved around).
|
when the expression is evaluated (but it may be moved around).
|
||||||
@ -3688,7 +3688,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
part can be in one of two forms:
|
part can be in one of two forms:
|
||||||
1. A list of pairs. Each pair is a "from" character immediately
|
1. A list of pairs. Each pair is a "from" character immediately
|
||||||
followed by the "to" character. Examples: "aA", "aAbBcC".
|
followed by the "to" character. Examples: "aA", "aAbBcC".
|
||||||
2. A list of "from" characters, a semi-colon and a list of "to"
|
2. A list of "from" characters, a semicolon and a list of "to"
|
||||||
characters. Example: "abc;ABC"
|
characters. Example: "abc;ABC"
|
||||||
Example: "aA,fgh;FGH,cCdDeE"
|
Example: "aA,fgh;FGH,cCdDeE"
|
||||||
Special characters need to be preceded with a backslash. These are
|
Special characters need to be preceded with a backslash. These are
|
||||||
@ -4585,7 +4585,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
set path+=
|
set path+=
|
||||||
< To use an environment variable, you probably need to replace the
|
< To use an environment variable, you probably need to replace the
|
||||||
separator. Here is an example to append $INCL, in which directory
|
separator. Here is an example to append $INCL, in which directory
|
||||||
names are separated with a semi-colon: >vim
|
names are separated with a semicolon: >vim
|
||||||
let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
|
let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
|
||||||
< Replace the ';' with a ':' or whatever separator is used. Note that
|
< Replace the ';' with a ':' or whatever separator is used. Note that
|
||||||
this doesn't work when $INCL contains a comma or white space.
|
this doesn't work when $INCL contains a comma or white space.
|
||||||
|
8
runtime/lua/vim/_meta/options.lua
generated
8
runtime/lua/vim/_meta/options.lua
generated
@ -544,7 +544,7 @@ vim.wo.bri = vim.wo.breakindent
|
|||||||
--- applying 'breakindent', even if the resulting
|
--- applying 'breakindent', even if the resulting
|
||||||
--- text should normally be narrower. This prevents
|
--- text should normally be narrower. This prevents
|
||||||
--- text indented almost to the right window border
|
--- text indented almost to the right window border
|
||||||
--- occupying lot of vertical space when broken.
|
--- occupying lots of vertical space when broken.
|
||||||
--- (default: 20)
|
--- (default: 20)
|
||||||
--- shift:{n} After applying 'breakindent', the wrapped line's
|
--- shift:{n} After applying 'breakindent', the wrapped line's
|
||||||
--- beginning will be shifted by the given number of
|
--- beginning will be shifted by the given number of
|
||||||
@ -3330,7 +3330,7 @@ vim.go.is = vim.go.incsearch
|
|||||||
--- in Insert mode as specified with the 'indentkeys' option.
|
--- in Insert mode as specified with the 'indentkeys' option.
|
||||||
--- When this option is not empty, it overrules the 'cindent' and
|
--- When this option is not empty, it overrules the 'cindent' and
|
||||||
--- 'smartindent' indenting. When 'lisp' is set, this option is
|
--- 'smartindent' indenting. When 'lisp' is set, this option is
|
||||||
--- is only used when 'lispoptions' contains "expr:1".
|
--- only used when 'lispoptions' contains "expr:1".
|
||||||
--- The expression is evaluated with `v:lnum` set to the line number for
|
--- The expression is evaluated with `v:lnum` set to the line number for
|
||||||
--- which the indent is to be computed. The cursor is also in this line
|
--- which the indent is to be computed. The cursor is also in this line
|
||||||
--- when the expression is evaluated (but it may be moved around).
|
--- when the expression is evaluated (but it may be moved around).
|
||||||
@ -3628,7 +3628,7 @@ vim.go.kp = vim.go.keywordprg
|
|||||||
--- part can be in one of two forms:
|
--- part can be in one of two forms:
|
||||||
--- 1. A list of pairs. Each pair is a "from" character immediately
|
--- 1. A list of pairs. Each pair is a "from" character immediately
|
||||||
--- followed by the "to" character. Examples: "aA", "aAbBcC".
|
--- followed by the "to" character. Examples: "aA", "aAbBcC".
|
||||||
--- 2. A list of "from" characters, a semi-colon and a list of "to"
|
--- 2. A list of "from" characters, a semicolon and a list of "to"
|
||||||
--- characters. Example: "abc;ABC"
|
--- characters. Example: "abc;ABC"
|
||||||
--- Example: "aA,fgh;FGH,cCdDeE"
|
--- Example: "aA,fgh;FGH,cCdDeE"
|
||||||
--- Special characters need to be preceded with a backslash. These are
|
--- Special characters need to be preceded with a backslash. These are
|
||||||
@ -4760,7 +4760,7 @@ vim.go.pm = vim.go.patchmode
|
|||||||
--- ```
|
--- ```
|
||||||
--- To use an environment variable, you probably need to replace the
|
--- To use an environment variable, you probably need to replace the
|
||||||
--- separator. Here is an example to append $INCL, in which directory
|
--- separator. Here is an example to append $INCL, in which directory
|
||||||
--- names are separated with a semi-colon:
|
--- names are separated with a semicolon:
|
||||||
---
|
---
|
||||||
--- ```vim
|
--- ```vim
|
||||||
--- let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
|
--- let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
|
||||||
|
@ -747,7 +747,7 @@ return {
|
|||||||
applying 'breakindent', even if the resulting
|
applying 'breakindent', even if the resulting
|
||||||
text should normally be narrower. This prevents
|
text should normally be narrower. This prevents
|
||||||
text indented almost to the right window border
|
text indented almost to the right window border
|
||||||
occupying lot of vertical space when broken.
|
occupying lots of vertical space when broken.
|
||||||
(default: 20)
|
(default: 20)
|
||||||
shift:{n} After applying 'breakindent', the wrapped line's
|
shift:{n} After applying 'breakindent', the wrapped line's
|
||||||
beginning will be shifted by the given number of
|
beginning will be shifted by the given number of
|
||||||
@ -4221,7 +4221,7 @@ return {
|
|||||||
in Insert mode as specified with the 'indentkeys' option.
|
in Insert mode as specified with the 'indentkeys' option.
|
||||||
When this option is not empty, it overrules the 'cindent' and
|
When this option is not empty, it overrules the 'cindent' and
|
||||||
'smartindent' indenting. When 'lisp' is set, this option is
|
'smartindent' indenting. When 'lisp' is set, this option is
|
||||||
is only used when 'lispoptions' contains "expr:1".
|
only used when 'lispoptions' contains "expr:1".
|
||||||
The expression is evaluated with |v:lnum| set to the line number for
|
The expression is evaluated with |v:lnum| set to the line number for
|
||||||
which the indent is to be computed. The cursor is also in this line
|
which the indent is to be computed. The cursor is also in this line
|
||||||
when the expression is evaluated (but it may be moved around).
|
when the expression is evaluated (but it may be moved around).
|
||||||
@ -4612,7 +4612,7 @@ return {
|
|||||||
part can be in one of two forms:
|
part can be in one of two forms:
|
||||||
1. A list of pairs. Each pair is a "from" character immediately
|
1. A list of pairs. Each pair is a "from" character immediately
|
||||||
followed by the "to" character. Examples: "aA", "aAbBcC".
|
followed by the "to" character. Examples: "aA", "aAbBcC".
|
||||||
2. A list of "from" characters, a semi-colon and a list of "to"
|
2. A list of "from" characters, a semicolon and a list of "to"
|
||||||
characters. Example: "abc;ABC"
|
characters. Example: "abc;ABC"
|
||||||
Example: "aA,fgh;FGH,cCdDeE"
|
Example: "aA,fgh;FGH,cCdDeE"
|
||||||
Special characters need to be preceded with a backslash. These are
|
Special characters need to be preceded with a backslash. These are
|
||||||
@ -5987,7 +5987,7 @@ return {
|
|||||||
set path+=
|
set path+=
|
||||||
< To use an environment variable, you probably need to replace the
|
< To use an environment variable, you probably need to replace the
|
||||||
separator. Here is an example to append $INCL, in which directory
|
separator. Here is an example to append $INCL, in which directory
|
||||||
names are separated with a semi-colon: >vim
|
names are separated with a semicolon: >vim
|
||||||
let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
|
let &path = &path .. "," .. substitute($INCL, ';', ',', 'g')
|
||||||
< Replace the ';' with a ':' or whatever separator is used. Note that
|
< Replace the ';' with a ':' or whatever separator is used. Note that
|
||||||
this doesn't work when $INCL contains a comma or white space.
|
this doesn't work when $INCL contains a comma or white space.
|
||||||
|
Reference in New Issue
Block a user