|
3 | 3 | helpname: 'builtin'
|
4 | 4 | ---
|
5 | 5 | <div id='vimCodeElement'>
|
6 |
| -<a class="Constant" href="builtin.html" name="builtin.txt">builtin.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Aug 08<br> |
| 6 | +<a class="Constant" href="builtin.html" name="builtin.txt">builtin.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Aug 10<br> |
7 | 7 | <br>
|
8 | 8 | <br>
|
9 | 9 | <span class="Identifier">VIMリファレンスマニュアル by Bram Moolenaar</span><br>
|
|
7253 | 7253 | [{'lnum': 3, 'byteidx': 0, 'text': 'a'}]<br>
|
7254 | 7254 | " バッファ 10 の 4 行目に "tik tok" が含まれていると仮定<br>
|
7255 | 7255 | :echo matchbufline(10, '\<\k\+\>', 1, 4)<br>
|
7256 |
| - [{'lnum': 4, 'byteidx': 0, 'text': 'tik'}, {'lnum': 4, 'byteidx': 4, 'text': 'tok'}]</div> |
| 7256 | + [{'lnum': 4, 'byteidx': 0, 'text': 'tik'},<br> |
| 7257 | + {'lnum': 4, 'byteidx': 4, 'text': 'tok'}]</div> |
7257 | 7258 | <br>
|
7258 | 7259 | <span class="Special">{submatch}</span> が存在し、v:true の場合、"\1"、"\2" 等のサブマッチ<br>
|
7259 | 7260 | も返される。例:<br>
|
7260 | 7261 | <div class="helpExample"> " バッファ 2 の 2 行目に "acd" が含まれていると仮定<br>
|
7261 | 7262 | :echo matchbufline(2, '\(a\)\?\(b\)\?\(c\)\?\(.*\)', 2, 2<br>
|
7262 | 7263 | \ {'submatches': v:true})<br>
|
7263 |
| - [{'lnum': 2, 'byteidx': 0, 'text': 'acd', 'submatches': ['a', '', 'c', 'd', '', '', '', '', '']}]</div> |
| 7264 | + [{'lnum': 2, 'byteidx': 0, 'text': 'acd', 'submatches':<br> |
| 7265 | + ['a', '', 'c', 'd', '', '', '', '', '']}]</div> |
7264 | 7266 | "submatches" リストには常に 9 個のアイテムが含まれる。サブマッ<br>
|
7265 | 7267 | チが見つからない場合、そのサブマッチに対しては空文字列が返され<br>
|
7266 | 7268 | る。<br>
|
|
7391 | 7393 | <div class="helpExample"> :echo matchfuzzypos(['clay', 'lacy'], 'la')</div>
|
7392 | 7394 | 結果は [[<span class="MissingTag">'lacy'</span>, <span class="MissingTag">'clay'</span>], [[0, 1], [1, 2]], [153, 133]] にな<br>
|
7393 | 7395 | る。<br>
|
7394 |
| -<div class="helpExample"> :echo [{'text': 'hello', 'id' : 10}]->matchfuzzypos('ll', {'key' : 'text'})</div> |
| 7396 | +<div class="helpExample"> :echo [{'text': 'hello', 'id' : 10}]<br> |
| 7397 | + \ ->matchfuzzypos('ll', {'key' : 'text'})</div> |
7395 | 7398 | 結果は [[{<span class="MissingTag">'id'</span>: 10, <span class="MissingTag">'text'</span>: <span class="MissingTag">'hello'</span>}], [[2, 3]], <span class="Special">[127]</span>] にな<br>
|
7396 | 7399 | る。<br>
|
7397 | 7400 | <br>
|
|
7435 | 7438 | <br>
|
7436 | 7439 | 例:<br>
|
7437 | 7440 | <div class="helpExample"> :echo matchstrlist(['tik tok'], '\<\k\+\>')<br>
|
7438 |
| - [{'idx': 0, 'byteidx': 0, 'text': 'tik'}, {'idx': 0, 'byteidx': 4, 'text': 'tok'}]<br> |
| 7441 | + [{'idx': 0, 'byteidx': 0, 'text': 'tik'},<br> |
| 7442 | + {'idx': 0, 'byteidx': 4, 'text': 'tok'}]<br> |
7439 | 7443 | :echo matchstrlist(['a', 'b'], '\<\k\+\>')<br>
|
7440 |
| - [{'idx': 0, 'byteidx': 0, 'text': 'a'}, {'idx': 1, 'byteidx': 0, 'text': 'b'}]</div> |
| 7444 | + [{'idx': 0, 'byteidx': 0, 'text': 'a'},<br> |
| 7445 | + {'idx': 1, 'byteidx': 0, 'text': 'b'}]</div> |
7441 | 7446 | <br>
|
7442 | 7447 | "submatch" が存在し、v:true の場合、"\1"、"\2" 等のサブマッチ<br>
|
7443 | 7448 | も返される。例:<br>
|
7444 | 7449 | <div class="helpExample"> :echo matchstrlist(['acd'], '\(a\)\?\(b\)\?\(c\)\?\(.*\)',<br>
|
7445 | 7450 | \ #{submatches: v:true})<br>
|
7446 |
| - [{'idx': 0, 'byteidx': 0, 'text': 'acd', 'submatches': ['a', '', 'c', 'd', '', '', '', '', '']}]</div> |
| 7451 | + [{'idx': 0, 'byteidx': 0, 'text': 'acd',<br> |
| 7452 | + 'submatches': ['a', '', 'c', 'd', '', '', '', '', '']}]</div> |
7447 | 7453 | "submatches" リストには常に 9 個のアイテムが含まれる。サブマッ<br>
|
7448 | 7454 | チが見つからない場合、そのサブマッチに対しては空文字列が返され<br>
|
7449 | 7455 | る。<br>
|
|
8810 | 8816 | <span class="Todo">Note</span>: なんらかのエラーが発生すると、サーバー側で報告され、表示<br>
|
8811 | 8817 | が乱れてしまうかもしれない。<br>
|
8812 | 8818 | 例:<br>
|
8813 |
| -<div class="helpExample"> :echo remote_send("gvim", ":DropAndReply " .. file, "serverid") ..<br> |
8814 |
| - \ remote_read(serverid)</div> |
| 8819 | +<div class="helpExample"> :echo remote_send("gvim", ":DropAndReply " .. file,<br> |
| 8820 | + \ "serverid") .. remote_read(serverid)</div> |
8815 | 8821 | <br>
|
8816 | 8822 | <div class="helpExample"> :autocmd NONE RemoteReply *<br>
|
8817 | 8823 | \ echo remote_read(expand("<amatch>"))<br>
|
|
0 commit comments