File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- *map.txt* For Vim バージョン 9.1. Last change: 2025 Nov 09
1+ *map.txt* For Vim バージョン 9.1. Last change: 2026 Feb 04
22
33
44 VIM リファレンスマニュアル by Bram Moolenaar
@@ -1640,7 +1640,9 @@ script2.vimを実行すると "None" が表示されます。期待した結果
16401640 -complete=scriptnames 読み込まれたスクリプト
16411641 -complete=shellcmd シェルコマンド
16421642 -complete=shellcmdline 最初はシェルコマンドで、後続はファイル名。
1643- | :!cmd | と同じ動作である
1643+ | :!cmd | と同じ動作である。正しい補完を得るに
1644+ は、| :command-nargs | は '*' または '+' である
1645+ 必要がある
16441646 -complete=sign | :sign | サブオプション
16451647 -complete=syntax シンタックスファイル名 'syntax'
16461648 -complete=syntime | :syntime | サブオプション
@@ -1673,7 +1675,9 @@ Note: いくつかの補完方法は環境変数を展開します。
16731675ト中の文字列以外の変数は無視されます。
16741676
16751677引数には次の意味があります:
1676- ArgLead すでに入力されている補完対象の文字列
1678+ ArgLead すでに入力されている補完対象の文字列。note "-nargs=1"
1679+ を使用している場合でも、これは現在のスペースで区切られ
1680+ た単語のみをキャプチャすることに注意。
16771681 CmdLine コマンドライン全体
16781682 CursorPos カーソル位置 (バイト単位のインデックス)
16791683これらの引数を使えば文脈を判断することができるでしょう。"custom" を使った場合、
Original file line number Diff line number Diff line change 1- *map.txt* For Vim version 9.1. Last change: 2025 Nov 09
1+ *map.txt* For Vim version 9.1. Last change: 2026 Feb 04
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1659,7 +1659,9 @@ completion can be enabled:
16591659 -complete=scriptnames sourced script names
16601660 -complete=shellcmd Shell command
16611661 -complete=shellcmdline First is a shell command and subsequent ones
1662- are filenames. The same behavior as | :!cmd |
1662+ are filenames. The same behavior as | :!cmd | .
1663+ To get correct completion, | :command-nargs |
1664+ should be '*' or '+'
16631665 -complete=sign | :sign | suboptions
16641666 -complete=syntax syntax file names 'syntax'
16651667 -complete=syntime | :syntime | suboptions
@@ -1695,7 +1697,8 @@ candidates as a Vim List. Non-string items in the list are ignored.
16951697
16961698The function arguments are:
16971699 ArgLead the leading portion of the argument currently being
1698- completed on
1700+ completed on; note that this only captures the current
1701+ space-separated word, even when using "-nargs=1"
16991702 CmdLine the entire command line
17001703 CursorPos the cursor position in it (byte index)
17011704The function may use these for determining context. For the "custom"
You can’t perform that action at this time.
0 commit comments