|
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.2.</span> Last change: 2026 May 21<br> |
| 6 | +<a class="Constant" href="builtin.html" name="builtin.txt">builtin.txt</a> For <span class="Identifier">Vim バージョン 9.2.</span> Last change: 2026 May 31<br> |
7 | 7 | <br> |
8 | 8 | <br> |
9 | 9 | <span class="Identifier"> VIM リファレンスマニュアル by Bram Moolenaar</span><br> |
|
3663 | 3663 | 合)、またはこの方法で短縮できない場合は空文字列を返す。<br> |
3664 | 3664 | <a class="Identifier" href="vim9.html#vim9-no-shorten">vim9-no-shorten</a><br> |
3665 | 3665 | <br> |
3666 | | - 引数 <span class="Special">{vim9}</span> がない場合は、現在のスクリプトのバージョンを使用す<br> |
3667 | | - る。<br> |
| 3666 | + <span class="Special">{vim9}</span> 引数がない場合、現在のスクリプトバージョンが使用される。<br> |
3668 | 3667 | <span class="Special">{vim9}</span> が存在し、FALSE の場合、旧来のスクリプトルールが使用さ<br> |
3669 | | - れる。<span class="Special">{vim9}</span> が存在し、TRUE の場合、Vim9 のルールが使用される。<br> |
3670 | | - 例えば、"en" は "endif" の短縮形ではない。<br> |
3671 | | -<br> |
3672 | | - 例えば <span class="Comment">fullcommand('s')</span>、 <span class="Comment">fullcommand('sub')</span>、<br> |
3673 | | - <span class="Comment">fullcommand(':%substitute')</span> はすべて "substitute" を返す。<br> |
3674 | | -<br> |
| 3668 | + れる。<span class="Special">{vim9}</span> が存在し、TRUE の場合、Vim9 ルールが使用される<br> |
| 3669 | + (例: "en" は "endif" の短縮形ではない)。<br> |
| 3670 | +<br> |
| 3671 | + <span class="Todo">Note</span>: コマンドの検証は行われない。結果は、Vim の内部コマンド固<br> |
| 3672 | + 有の識別ルールに基づいている。<br> |
| 3673 | + 例:<br> |
| 3674 | +>vim<br> |
| 3675 | + echo [fullcommand('s')] |" [<span class="MissingTag">'substitute'</span>]<br> |
| 3676 | + echo [fullcommand(<span class="MissingTag">'sub'</span>)] |" [<span class="MissingTag">'substitute'</span>]<br> |
| 3677 | + echo [fullcommand(': mark word')] |" [<span class="MissingTag">'mark'</span>]<br> |
| 3678 | + echo [fullcommand(': markword')] |" ['']<br> |
| 3679 | + echo [fullcommand(<span class="MissingTag">'en'</span>)] |" [<span class="MissingTag">'endif'</span>]<br> |
| 3680 | + echo [fullcommand(<span class="MissingTag">'en'</span>, v:true)] |" ['']<br> |
| 3681 | +<<br> |
3675 | 3682 | <a class="Identifier" href="eval.html#method">method</a> としても使用できる:<br> |
3676 | 3683 | <div class="helpExample"> GetName()->fullcommand()</div> |
3677 | 3684 | <br> |
|
0 commit comments