docs(options): fix mistakes (#24568)

This commit is contained in:
zeertzjq
2023-08-05 07:55:45 +08:00
committed by GitHub
parent 6fa17da39b
commit 1f252a8ac0
2 changed files with 7 additions and 12 deletions

View File

@@ -904,7 +904,7 @@ A jump table for the options with a short description can be found at |Q_op|.
*'backupskip'* *'bsk'* *'backupskip'* *'bsk'*
'backupskip' 'bsk' string (default "$TMPDIR/*,$TMP/*,$TEMP/*" 'backupskip' 'bsk' string (default "$TMPDIR/*,$TMP/*,$TEMP/*"
Unix: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*" Unix: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*"
Mac: "/private/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*")) Mac: "/private/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*")
global global
A list of file patterns. When one of the patterns matches with the A list of file patterns. When one of the patterns matches with the
name of the file which is written, no backup file is created. Both name of the file which is written, no backup file is created. Both
@@ -3102,7 +3102,6 @@ A jump table for the options with a short description can be found at |Q_op|.
*'helpfile'* *'hf'* *'helpfile'* *'hf'*
'helpfile' 'hf' string (default (MS-Windows) "$VIMRUNTIME\doc\help.txt" 'helpfile' 'hf' string (default (MS-Windows) "$VIMRUNTIME\doc\help.txt"
(others) "$VIMRUNTIME/doc/help.txt") (others) "$VIMRUNTIME/doc/help.txt")
)
global global
Name of the main help file. All distributed help files should be Name of the main help file. All distributed help files should be
placed together in one directory. Additionally, all "doc" directories placed together in one directory. Additionally, all "doc" directories
@@ -3428,7 +3427,6 @@ A jump table for the options with a short description can be found at |Q_op|.
'isfname' 'isf' string (default for Windows: 'isfname' 'isf' string (default for Windows:
"@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=" "@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,="
otherwise: "@,48-57,/,.,-,_,+,,,#,$,%,~,=") otherwise: "@,48-57,/,.,-,_,+,,,#,$,%,~,=")
)
global global
The characters specified by this option are included in file names and The characters specified by this option are included in file names and
path names. Filenames are used for commands like "gf", "[i" and in path names. Filenames are used for commands like "gf", "[i" and in
@@ -3480,7 +3478,6 @@ A jump table for the options with a short description can be found at |Q_op|.
'isident' 'isi' string (default for Windows: 'isident' 'isi' string (default for Windows:
"@,48-57,_,128-167,224-235" "@,48-57,_,128-167,224-235"
otherwise: "@,48-57,_,192-255") otherwise: "@,48-57,_,192-255")
)
global global
The characters given by this option are included in identifiers. The characters given by this option are included in identifiers.
Identifiers are used in recognizing environment variables and after a Identifiers are used in recognizing environment variables and after a
@@ -6610,7 +6607,7 @@ A jump table for the options with a short description can be found at |Q_op|.
used for CTRL-\ CTRL-N and CTRL-\ CTRL-G when part of a command has used for CTRL-\ CTRL-N and CTRL-\ CTRL-G when part of a command has
been typed. been typed.
*'undodir'* *'udir'* *'undodir'* *'udir'* *E5003*
'undodir' 'udir' string (default "$XDG_STATE_HOME/nvim/undo//") 'undodir' 'udir' string (default "$XDG_STATE_HOME/nvim/undo//")
global global
List of directory names for undo files, separated with commas. List of directory names for undo files, separated with commas.

View File

@@ -547,7 +547,7 @@ return {
if_true = '', if_true = '',
doc = [["$TMPDIR/*,$TMP/*,$TEMP/*" doc = [["$TMPDIR/*,$TMP/*,$TEMP/*"
Unix: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*" Unix: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*"
Mac: "/private/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*")]], Mac: "/private/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*"]],
meta = '/tmp/*', meta = '/tmp/*',
}, },
deny_duplicates = true, deny_duplicates = true,
@@ -3726,8 +3726,7 @@ return {
defaults = { defaults = {
if_true = macros('DFLT_HELPFILE'), if_true = macros('DFLT_HELPFILE'),
doc = [[(MS-Windows) "$VIMRUNTIME\doc\help.txt" doc = [[(MS-Windows) "$VIMRUNTIME\doc\help.txt"
(others) "$VIMRUNTIME/doc/help.txt") (others) "$VIMRUNTIME/doc/help.txt"]],
]],
}, },
desc = [=[ desc = [=[
Name of the main help file. All distributed help files should be Name of the main help file. All distributed help files should be
@@ -4270,8 +4269,7 @@ return {
if_true = '@,48-57,/,\\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=', if_true = '@,48-57,/,\\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=',
doc = [[for Windows: doc = [[for Windows:
"@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=" "@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,="
otherwise: "@,48-57,/,.,-,_,+,,,#,$,%,~,=") otherwise: "@,48-57,/,.,-,_,+,,,#,$,%,~,="]],
]],
}, },
deny_duplicates = true, deny_duplicates = true,
desc = [=[ desc = [=[
@@ -4337,8 +4335,7 @@ return {
if_true = '@,48-57,_,128-167,224-235', if_true = '@,48-57,_,128-167,224-235',
doc = [[for Windows: doc = [[for Windows:
"@,48-57,_,128-167,224-235" "@,48-57,_,128-167,224-235"
otherwise: "@,48-57,_,192-255") otherwise: "@,48-57,_,192-255"]],
]],
}, },
deny_duplicates = true, deny_duplicates = true,
desc = [=[ desc = [=[
@@ -9031,6 +9028,7 @@ return {
scope = { 'global' }, scope = { 'global' },
secure = true, secure = true,
short_desc = N_('where to store undo files'), short_desc = N_('where to store undo files'),
tags = { 'E5003' },
type = 'string', type = 'string',
varname = 'p_udir', varname = 'p_udir',
}, },