Skip to content

Commit 259c675

Browse files
authored
Merge pull request #1764 from h-east/update-options
Update options.{txt,jax}
2 parents 49e9a9c + cdba7dd commit 259c675

File tree

2 files changed

+93
-16
lines changed

2 files changed

+93
-16
lines changed

doc/options.jax

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2024 Oct 16
1+
*options.txt* For Vim バージョン 9.1. Last change: 2024 Oct 22
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -3422,7 +3422,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
34223422

34233423
*'fileformat'* *'ff'*
34243424
'fileformat' 'ff' 文字列 (MS-Windows での既定値: "dos",
3425-
Unix, macOS での既定値: "unix")
3425+
Unix での既定値: "unix")
34263426
バッファについてローカル
34273427
バッファにファイルを読み込んだり、バッファからファイルに書き込んだりす
34283428
るときに使われる <EOL> を、カレントバッファについて設定する。
@@ -3447,7 +3447,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
34473447
*'fileformats'* *'ffs'*
34483448
'fileformats' 'ffs' 文字列 (既定値:
34493449
Vim+Vi MS-Windows: "dos,unix",
3450-
Vim Unix, macOS: "unix,dos",
3450+
Vim Unix: "unix,dos",
34513451
Vi Cygwin: "unix,dos",
34523452
Vi その他: "")
34533453
グローバル
@@ -3575,6 +3575,46 @@ Note 1番目の形式では、行全体がオプション指定に使われる
35753575
eob EndOfBuffer |hl-EndOfBuffer|
35763576
lastline NonText |hl-NonText|
35773577

3578+
*'findexpr'* *'fexpr'* *E1514*
3579+
'findexpr' 'fexpr' 文字列 (既定では "")
3580+
グローバル/バッファについてローカル |global-local|
3581+
{|+eval| 機能つきでコンパイルされたときのみ有効}
3582+
|:find| コマンドのファイル名を取得するために評価される式。このオプショ
3583+
ンが空の場合、内部の |file-searching| メカニズムが使用される。
3584+
3585+
式の評価中、|v:fname| 変数は |:find| コマンドの引数に設定される。
3586+
3587+
式は、|:find| コマンドの呼び出しごとに 1 回だけ評価される。
3588+
式は、'path' で指定されたすべてのディレクトリを処理できる。
3589+
3590+
マッチした場合、式は 1 つ以上のファイル名を含む |List| を返す必要があ
3591+
る。マッチしない場合、式は空のリストを返す必要がある。
3592+
3593+
式の評価中にエラーが発生した場合、空のリストが戻り値として使用される。
3594+
3595+
引数なしの関数呼び出しを使用すると高速になる |expr-option-function|
3596+
3597+
'findexpr' の評価中にテキストを変更したり、別のウィンドウにジャンプし
3598+
たりすることはできない。|textlock|
3599+
3600+
セキュリティ上の理由から、このオプションを |modeline| または |sandbox|
3601+
内で設定することはできない。
3602+
3603+
例:
3604+
>
3605+
" glob() を使う
3606+
func FindExprGlob()
3607+
return glob(v:fname, v:false, v:true)
3608+
endfunc
3609+
set findexpr=FindExprGlob()
3610+
3611+
" 'git ls-files' の出力を使う
3612+
func FindGitFiles()
3613+
let fnames = systemlist('git ls-files')
3614+
return fnames->filter('v:val =~? v:fname')
3615+
endfunc
3616+
set findexpr=FindGitFiles()
3617+
<
35783618
*'fixendofline'* *'fixeol'* *'nofixendofline'* *'nofixeol'*
35793619
'fixendofline' 'fixeol' 切替 (既定ではオン)
35803620
バッファについてローカル
@@ -4973,7 +5013,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
49735013
'compatible' がオフになるとVimの既定値に設定されるので注意。
49745014

49755015
*'isprint'* *'isp'*
4976-
'isprint' 'isp' 文字列 (Win32とmacOSでの既定値:
5016+
'isprint' 'isp' 文字列 (Win32 と VMS での既定値:
49775017
"@,~-255"; それ以外では: "@,161-255")
49785018
グローバル
49795019
このオプションで指定された文字は、画面に直接表示される。またパターン
@@ -6759,9 +6799,6 @@ Note 1番目の形式では、行全体がオプション指定に使われる
67596799
$VIMRUNTIME,
67606800
$VIM/vimfiles/after,
67616801
$HOME/vimfiles/after"
6762-
macOS: "$VIM:vimfiles,
6763-
$VIMRUNTIME,
6764-
$VIM:vimfiles:after"
67656802
Haiku: "$BE_USER_SETTINGS/vim,
67666803
$VIM/vimfiles,
67676804
$VIMRUNTIME,
@@ -9104,7 +9141,6 @@ Note 1番目の形式では、行全体がオプション指定に使われる
91049141
Win32用: "$HOME/vimfiles/view",
91059142
Unix用: "$HOME/.vim/view" または
91069143
"$XDG_CONFIG_HOME/vim/view"
9107-
macOS用: "$VIM/vimfiles/view",
91089144
VMS用: "sys$login:vimfiles/view")
91099145
グローバル
91109146
{|+mksession| 機能付きでコンパイルされたときのみ有効}

en/options.txt

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2024 Oct 16
1+
*options.txt* For Vim version 9.1. Last change: 2024 Oct 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3403,7 +3403,7 @@ A jump table for the options with a short description can be found at |Q_op|.
34033403

34043404
*'fileformat'* *'ff'*
34053405
'fileformat' 'ff' string (MS-Windows default: "dos",
3406-
Unix, macOS default: "unix")
3406+
Unix default: "unix")
34073407
local to buffer
34083408
This gives the <EOL> of the current buffer, which is used for
34093409
reading/writing the buffer from/to a file:
@@ -3426,7 +3426,7 @@ A jump table for the options with a short description can be found at |Q_op|.
34263426
*'fileformats'* *'ffs'*
34273427
'fileformats' 'ffs' string (default:
34283428
Vim+Vi MS-Windows: "dos,unix",
3429-
Vim Unix, macOS: "unix,dos",
3429+
Vim Unix: "unix,dos",
34303430
Vi Cygwin: "unix,dos",
34313431
Vi others: "")
34323432
global
@@ -3552,6 +3552,51 @@ A jump table for the options with a short description can be found at |Q_op|.
35523552
eob EndOfBuffer |hl-EndOfBuffer|
35533553
lastline NonText |hl-NonText|
35543554

3555+
*'findexpr'* *'fexpr'* *E1514*
3556+
'findexpr' 'fexpr' string (default "")
3557+
global or local to buffer |global-local|
3558+
{not available when compiled without the |+eval|
3559+
feature}
3560+
Expression that is evaluated to obtain the filename(s) for the |:find|
3561+
command. When this option is empty, the internal |file-searching|
3562+
mechanism is used.
3563+
3564+
While evaluating the expression, the |v:fname| variable is set to the
3565+
argument of the |:find| command.
3566+
3567+
The expression is evaluated only once per |:find| command invocation.
3568+
The expression can process all the directories specified in 'path'.
3569+
3570+
If a match is found, the expression should return a |List| containing
3571+
one or more file names. If a match is not found, the expression
3572+
should return an empty List.
3573+
3574+
If any errors are encountered during the expression evaluation, an
3575+
empty List is used as the return value.
3576+
3577+
Using a function call without arguments is faster |expr-option-function|
3578+
3579+
It is not allowed to change text or jump to another window while
3580+
evaluating 'findexpr' |textlock|.
3581+
3582+
This option cannot be set from a |modeline| or in the |sandbox|, for
3583+
security reasons.
3584+
3585+
Examples:
3586+
>
3587+
" Use glob()
3588+
func FindExprGlob()
3589+
return glob(v:fname, v:false, v:true)
3590+
endfunc
3591+
set findexpr=FindExprGlob()
3592+
3593+
" Use the 'git ls-files' output
3594+
func FindGitFiles()
3595+
let fnames = systemlist('git ls-files')
3596+
return fnames->filter('v:val =~? v:fname')
3597+
endfunc
3598+
set findexpr=FindGitFiles()
3599+
<
35553600
*'fixendofline'* *'fixeol'* *'nofixendofline'* *'nofixeol'*
35563601
'fixendofline' 'fixeol' boolean (default on)
35573602
local to buffer
@@ -4917,7 +4962,7 @@ A jump table for the options with a short description can be found at |Q_op|.
49174962
set and to the Vim default value when 'compatible' is reset.
49184963

49194964
*'isprint'* *'isp'*
4920-
'isprint' 'isp' string (default for Win32 and macOS:
4965+
'isprint' 'isp' string (default for Win32 and VMS:
49214966
"@,~-255"; otherwise: "@,161-255")
49224967
global
49234968
The characters given by this option are displayed directly on the
@@ -6742,9 +6787,6 @@ A jump table for the options with a short description can be found at |Q_op|.
67426787
$VIMRUNTIME,
67436788
$VIM/vimfiles/after,
67446789
$HOME/vimfiles/after"
6745-
macOS: "$VIM:vimfiles,
6746-
$VIMRUNTIME,
6747-
$VIM:vimfiles:after"
67486790
Haiku: "$BE_USER_SETTINGS/vim,
67496791
$VIM/vimfiles,
67506792
$VIMRUNTIME,
@@ -9057,7 +9099,6 @@ A jump table for the options with a short description can be found at |Q_op|.
90579099
for Win32: "$HOME/vimfiles/view",
90589100
for Unix: "$HOME/.vim/view" or
90599101
"$XDG_CONFIG_HOME/vim/view"
9060-
for macOS: "$VIM/vimfiles/view",
90619102
for VMS: "sys$login:vimfiles/view")
90629103
global
90639104
{not available when compiled without the |+mksession|

0 commit comments

Comments
 (0)