Skip to content

Commit 8ebdbc9

Browse files
authored
runtime(doc): all secure options should note this restriction in the documentation (#13448)
Problem: Not all secure options document their status Solution: Describe secure context :set restrictions in each help entry Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent c1c177a commit 8ebdbc9

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

runtime/doc/options.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,6 +1604,8 @@ A jump table for the options with a short description can be found at |Q_op|.
16041604
current working directory to the |$HOME| directory like in Unix.
16051605
When off, those commands just print the current directory name.
16061606
On Unix this option has no effect.
1607+
This option cannot be set from a |modeline| or in the |sandbox|, for
1608+
security reasons.
16071609
NOTE: This option is reset when 'compatible' is set.
16081610

16091611
*'cdpath'* *'cd'* *E344* *E346*
@@ -5590,7 +5592,8 @@ A jump table for the options with a short description can be found at |Q_op|.
55905592
< If you have less than 512 Mbyte |:mkspell| may fail for some
55915593
languages, no matter what you set 'mkspellmem' to.
55925594

5593-
This option cannot be set from a |modeline| or in the |sandbox|.
5595+
This option cannot be set from a |modeline| or in the |sandbox|, for
5596+
security reasons.
55945597

55955598
*'modeline'* *'ml'* *'nomodeline'* *'noml'*
55965599
'modeline' 'ml' boolean (Vim default: on (off for root),
@@ -5992,6 +5995,8 @@ A jump table for the options with a short description can be found at |Q_op|.
59925995
*'packpath'* *'pp'*
59935996
'packpath' 'pp' string (default: see 'runtimepath')
59945997
Directories used to find packages. See |packages|.
5998+
This option cannot be set from a |modeline| or in the |sandbox|, for
5999+
security reasons.
59956000

59966001

59976002
*'paragraphs'* *'para'*
@@ -6076,6 +6081,8 @@ A jump table for the options with a short description can be found at |Q_op|.
60766081
feature}
60776082
Expression which is evaluated to apply a patch to a file and generate
60786083
the resulting new version of the file. See |diff-patchexpr|.
6084+
This option cannot be set from a |modeline| or in the |sandbox|, for
6085+
security reasons.
60796086

60806087
*'patchmode'* *'pm'* *E205* *E206*
60816088
'patchmode' 'pm' string (default "")
@@ -7158,6 +7165,8 @@ A jump table for the options with a short description can be found at |Q_op|.
71587165
When 'shellxquote' is set to "(" then the characters listed in this
71597166
option will be escaped with a '^' character. This makes it possible
71607167
to execute most external commands with cmd.exe.
7168+
This option cannot be set from a |modeline| or in the |sandbox|, for
7169+
security reasons.
71617170

71627171
*'shellxquote'* *'sxq'*
71637172
'shellxquote' 'sxq' string (default: "";
@@ -8214,6 +8223,8 @@ A jump table for the options with a short description can be found at |Q_op|.
82148223
function and an example. The value can be the name of a function, a
82158224
|lambda| or a |Funcref|. See |option-value-function| for more
82168225
information.
8226+
This option cannot be set from a |modeline| or in the |sandbox|, for
8227+
security reasons.
82178228

82188229
*'taglength'* *'tl'*
82198230
'taglength' 'tl' number (default 0)
@@ -8973,6 +8984,8 @@ A jump table for the options with a short description can be found at |Q_op|.
89738984
Setting 'verbosefile' to a new value is like making it empty first.
89748985
The difference with |:redir| is that verbose messages are not
89758986
displayed when 'verbosefile' is set.
8987+
This option cannot be set from a |modeline| or in the |sandbox|, for
8988+
security reasons.
89768989

89778990
*'viewdir'* *'vdir'*
89788991
'viewdir' 'vdir' string (default for Amiga: "home:vimfiles/view",

0 commit comments

Comments
 (0)