Skip to content

Commit 59c169a

Browse files
committed
Update options.{txt,jax}
1 parent 3c3f466 commit 59c169a

2 files changed

Lines changed: 84 additions & 0 deletions

File tree

doc/options.jax

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6245,6 +6245,48 @@ Note 1番目の形式では、行全体がオプション指定に使われる
62456245
NOTE: 'modeline' は、'compatible' がオンになるとViの既定値に設定され、
62466246
'compatible' がオフになるとVimの既定値に設定されるので注意。
62476247

6248+
*'modelinestrict'* *'mlst'* *'nomodelinestrict'* *'nomlst'*
6249+
'modelinestrict' 'mlst' 切替 (既定ではオン)
6250+
グローバル
6251+
有効にすると、|modeline| から設定できるオプションは安全なサブセットの
6252+
みになる。以下のオプションが許可される:
6253+
'autoindent'
6254+
'cindent'
6255+
'commentstring'
6256+
'expandtab'
6257+
'filetype'
6258+
'foldcolumn'
6259+
'foldenable'
6260+
'foldmethod'
6261+
'modifiable'
6262+
'readonly'
6263+
'rightleft'
6264+
'shiftwidth'
6265+
'smartindent'
6266+
'softtabstop'
6267+
'spell'
6268+
'spelllang'
6269+
'tabstop'
6270+
'textwidth'
6271+
'varsofttabstop'
6272+
'vartabstop'
6273+
6274+
モードラインから設定されたその他のオプションは、すべて無視される。
6275+
セキュリティ上の理由から、このオプションは |modeline| または |sandbox|
6276+
内では設定できない。
6277+
6278+
'modeline'、'modelinestrict'、および 'modelineexpr' の動作は以下のとお
6279+
りである:
6280+
6281+
'modeline'| 'modelinestrict'| 'modelineexpr' | 意味
6282+
----------+-----------------+-------------------+--------~
6283+
on | off | on | 全オプションを設定可能
6284+
on | on | any | ホワイトリストに登録され
6285+
| | | たオプションのみ設定可能
6286+
on | off | off | expr オプションを除く全
6287+
| | | オプションを設定可能
6288+
off | any | any | オプションは設定不可
6289+
62486290
*'modifiable'* *'ma'* *'nomodifiable'* *'noma'*
62496291
*E21*
62506292
'modifiable' 'ma' 切替 (既定ではオン)

en/options.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6199,6 +6199,48 @@ A jump table for the options with a short description can be found at |Q_op|.
61996199
NOTE: 'modeline' is set to the Vi default value when 'compatible' is
62006200
set and to the Vim default value when 'compatible' is reset.
62016201

6202+
*'modelinestrict'* *'mlst'* *'nomodelinestrict'* *'nomlst'*
6203+
'modelinestrict' 'mlst' boolean (default: on)
6204+
global
6205+
When on, only a safe subset of options can be set from a |modeline|.
6206+
The following options are allowed:
6207+
'autoindent'
6208+
'cindent'
6209+
'commentstring'
6210+
'expandtab'
6211+
'filetype'
6212+
'foldcolumn'
6213+
'foldenable'
6214+
'foldmethod'
6215+
'modifiable'
6216+
'readonly'
6217+
'rightleft'
6218+
'shiftwidth'
6219+
'smartindent'
6220+
'softtabstop'
6221+
'spell'
6222+
'spelllang'
6223+
'tabstop'
6224+
'textwidth'
6225+
'varsofttabstop'
6226+
'vartabstop'
6227+
6228+
Any other option set from a modeline will be silently ignored.
6229+
This option cannot be set from a |modeline| or in the |sandbox|, for
6230+
security reasons.
6231+
6232+
The behaviour of 'modeline', 'modelinestrict' and 'modelineexpr' is
6233+
as follows:
6234+
6235+
'modeline'| 'modelinestrict'| 'modelineexpr' | Meaning
6236+
----------+-----------------+-------------------+--------~
6237+
on | off | on | All options can be set
6238+
on | on | any | Only whitelisted
6239+
| | | options can be set
6240+
on | off | off | All options except for
6241+
| | | expr options can be set
6242+
off | any | any | No options can be set
6243+
62026244
*'modifiable'* *'ma'* *'nomodifiable'* *'noma'*
62036245
*E21*
62046246
'modifiable' 'ma' boolean (default on)

0 commit comments

Comments
 (0)