|
3 | 3 | helpname: 'options' |
4 | 4 | --- |
5 | 5 | <div id='vimCodeElement'> |
6 | | -<a class="Constant" href="options.html" name="options.txt">options.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2024 Oct 16<br> |
| 6 | +<a class="Constant" href="options.html" name="options.txt">options.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2024 Oct 22<br> |
7 | 7 | <br> |
8 | 8 | <br> |
9 | 9 | <span class="Identifier">VIMリファレンスマニュアル by Bram Moolenaar</span><br> |
|
3427 | 3427 | <br> |
3428 | 3428 | <a class="Constant" href="options.html#'fileformat'" name="'fileformat'">'fileformat'</a> <a class="Constant" href="options.html#'ff'" name="'ff'">'ff'</a><br> |
3429 | 3429 | <a class="Type" href="options.html#'fileformat'">'fileformat'</a> <a class="Type" href="options.html#'ff'">'ff'</a> 文字列 (MS-Windows での既定値: "dos",<br> |
3430 | | - Unix, macOS での既定値: "unix")<br> |
| 3430 | + Unix での既定値: "unix")<br> |
3431 | 3431 | バッファについてローカル<br> |
3432 | 3432 | バッファにファイルを読み込んだり、バッファからファイルに書き込んだりす<br> |
3433 | 3433 | るときに使われる <span class="Special"><EOL></span> を、カレントバッファについて設定する。<br> |
|
3452 | 3452 | <a class="Constant" href="options.html#'fileformats'" name="'fileformats'">'fileformats'</a> <a class="Constant" href="options.html#'ffs'" name="'ffs'">'ffs'</a><br> |
3453 | 3453 | <a class="Type" href="options.html#'fileformats'">'fileformats'</a> <a class="Type" href="options.html#'ffs'">'ffs'</a> 文字列 (既定値:<br> |
3454 | 3454 | Vim+Vi MS-Windows: "dos,unix",<br> |
3455 | | - Vim Unix, macOS: "unix,dos",<br> |
| 3455 | + Vim Unix: "unix,dos",<br> |
3456 | 3456 | Vi Cygwin: "unix,dos",<br> |
3457 | 3457 | Vi その他: "")<br> |
3458 | 3458 | グローバル<br> |
|
3580 | 3580 | eob EndOfBuffer <a class="Identifier" href="syntax.html#hl-EndOfBuffer">hl-EndOfBuffer</a><br> |
3581 | 3581 | lastline NonText <a class="Identifier" href="syntax.html#hl-NonText">hl-NonText</a><br> |
3582 | 3582 | <br> |
| 3583 | + <a class="Constant" href="options.html#'findexpr'" name="'findexpr'">'findexpr'</a> <a class="Constant" href="options.html#'fexpr'" name="'fexpr'">'fexpr'</a> <a class="Constant" href="options.html#E1514" name="E1514">E1514</a><br> |
| 3584 | +<a class="Type" href="options.html#'findexpr'">'findexpr'</a> <a class="Type" href="options.html#'fexpr'">'fexpr'</a> 文字列 (既定では "")<br> |
| 3585 | + グローバル/バッファについてローカル <a class="Identifier" href="options.html#global-local">global-local</a><br> |
| 3586 | + <span class="Special">{</span><a class="Identifier" href="various.html#+eval">+eval</a><span class="Special"> 機能つきでコンパイルされたときのみ有効}</span><br> |
| 3587 | + <a class="Identifier" href="editing.html#:find">:find</a> コマンドのファイル名を取得するために評価される式。このオプショ<br> |
| 3588 | + ンが空の場合、内部の <a class="Identifier" href="editing.html#file-searching">file-searching</a> メカニズムが使用される。<br> |
| 3589 | +<br> |
| 3590 | + 式の評価中、<a class="Identifier" href="eval.html#v:fname">v:fname</a> 変数は <a class="Identifier" href="editing.html#:find">:find</a> コマンドの引数に設定される。<br> |
| 3591 | +<br> |
| 3592 | + 式は、<a class="Identifier" href="editing.html#:find">:find</a> コマンドの呼び出しごとに 1 回だけ評価される。<br> |
| 3593 | + 式は、<a class="Type" href="options.html#'path'">'path'</a> で指定されたすべてのディレクトリを処理できる。<br> |
| 3594 | +<br> |
| 3595 | + マッチした場合、式は 1 つ以上のファイル名を含む <a class="Identifier" href="eval.html#List">List</a> を返す必要があ<br> |
| 3596 | + る。マッチしない場合、式は空のリストを返す必要がある。<br> |
| 3597 | +<br> |
| 3598 | + 式の評価中にエラーが発生した場合、空のリストが戻り値として使用される。<br> |
| 3599 | +<br> |
| 3600 | + 引数なしの関数呼び出しを使用すると高速になる <a class="Identifier" href="vim9.html#expr-option-function">expr-option-function</a><br> |
| 3601 | +<br> |
| 3602 | + <a class="Type" href="options.html#'findexpr'">'findexpr'</a> の評価中にテキストを変更したり、別のウィンドウにジャンプし<br> |
| 3603 | + たりすることはできない。<a class="Identifier" href="eval.html#textlock">textlock</a><br> |
| 3604 | +<br> |
| 3605 | + セキュリティ上の理由から、このオプションを <a class="Identifier" href="options.html#modeline">modeline</a> または <a class="Identifier" href="eval.html#sandbox">sandbox</a><br> |
| 3606 | + 内で設定することはできない。<br> |
| 3607 | +<br> |
| 3608 | + 例:<br> |
| 3609 | +<br> |
| 3610 | +<div class="helpExample"> " glob() を使う<br> |
| 3611 | + func FindExprGlob()<br> |
| 3612 | + return glob(v:fname, v:false, v:true)<br> |
| 3613 | + endfunc<br> |
| 3614 | + set findexpr=FindExprGlob()</div> |
| 3615 | +<br> |
| 3616 | +<div class="helpExample"> " 'git ls-files' の出力を使う<br> |
| 3617 | + func FindGitFiles()<br> |
| 3618 | + let fnames = systemlist('git ls-files')<br> |
| 3619 | + return fnames->filter('v:val =~? v:fname')<br> |
| 3620 | + endfunc<br> |
| 3621 | + set findexpr=FindGitFiles()</div> |
| 3622 | +<br> |
3583 | 3623 | <a class="Constant" href="options.html#'fixendofline'" name="'fixendofline'">'fixendofline'</a> <a class="Constant" href="options.html#'fixeol'" name="'fixeol'">'fixeol'</a> <a class="Constant" href="options.html#'nofixendofline'" name="'nofixendofline'">'nofixendofline'</a> <a class="Constant" href="options.html#'nofixeol'" name="'nofixeol'">'nofixeol'</a><br> |
3584 | 3624 | <a class="Type" href="options.html#'fixendofline'">'fixendofline'</a> <a class="Type" href="options.html#'fixeol'">'fixeol'</a> 切替 (既定ではオン)<br> |
3585 | 3625 | バッファについてローカル<br> |
|
4978 | 5018 | <a class="Type" href="options.html#'compatible'">'compatible'</a> がオフになるとVimの既定値に設定されるので注意。<br> |
4979 | 5019 | <br> |
4980 | 5020 | <a class="Constant" href="options.html#'isprint'" name="'isprint'">'isprint'</a> <a class="Constant" href="options.html#'isp'" name="'isp'">'isp'</a><br> |
4981 | | -<a class="Type" href="options.html#'isprint'">'isprint'</a> <a class="Type" href="options.html#'isp'">'isp'</a> 文字列 (Win32とmacOSでの既定値:<br> |
| 5021 | +<a class="Type" href="options.html#'isprint'">'isprint'</a> <a class="Type" href="options.html#'isp'">'isp'</a> 文字列 (Win32 と VMS での既定値:<br> |
4982 | 5022 | "@,~-255"; それ以外では: "@,161-255")<br> |
4983 | 5023 | グローバル<br> |
4984 | 5024 | このオプションで指定された文字は、画面に直接表示される。またパターン<br> |
|
6764 | 6804 | $VIMRUNTIME,<br> |
6765 | 6805 | $VIM/vimfiles/after,<br> |
6766 | 6806 | $HOME/vimfiles/after"<br> |
6767 | | - macOS: "$VIM:vimfiles,<br> |
6768 | | - $VIMRUNTIME,<br> |
6769 | | - $VIM:vimfiles:after"<br> |
6770 | 6807 | Haiku: "$BE_USER_SETTINGS/vim,<br> |
6771 | 6808 | $VIM/vimfiles,<br> |
6772 | 6809 | $VIMRUNTIME,<br> |
|
9109 | 9146 | Win32用: "$HOME/vimfiles/view",<br> |
9110 | 9147 | Unix用: "$HOME/.vim/view" または<br> |
9111 | 9148 | "$XDG_CONFIG_HOME/vim/view"<br> |
9112 | | - macOS用: "$VIM/vimfiles/view",<br> |
9113 | 9149 | VMS用: "sys$login:vimfiles/view")<br> |
9114 | 9150 | グローバル<br> |
9115 | 9151 | <span class="Special">{</span><a class="Identifier" href="various.html#+mksession">+mksession</a><span class="Special"> 機能付きでコンパイルされたときのみ有効}</span><br> |
|
0 commit comments