Skip to content

Commit 0d43f5a

Browse files
authored
Merge pull request #2617 from h-east/update-map
Update map.{txt,jax}
2 parents 199c903 + 43c21a9 commit 0d43f5a

2 files changed

Lines changed: 33 additions & 5 deletions

File tree

doc/map.jax

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim バージョン 9.2. Last change: 2026 Feb 14
1+
*map.txt* For Vim バージョン 9.2. Last change: 2026 May 02
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -1671,8 +1671,22 @@ Note: いくつかの補完方法は環境変数を展開します。
16711671

16721672
"custom" を使った場合は、補完候補のリストを一つずつ改行で区切ってください。
16731673
*E1303*
1674-
"customlist" を使った場合は、補完候補のリストを |List| で返してください。リス
1675-
ト中の文字列以外の変数は無視されます。
1674+
"customlist" を使った場合は、補完候補のリストを |List| で返すこと。各項目は文
1675+
字列または |Dictionary| のいずれかである。
1676+
辞書の項目は、以下のキーを持つことができる:
1677+
word (必須) 項目が選択されたときにコマンドラインに挿入されるテキス
1678+
ト。
1679+
abbr 'wildoptions' に "pum" が含まれている場合、ポップアップメニュー
1680+
に "word" の代わりに代替テキストが表示される。挿入されたテキス
1681+
トと表示されるテキストが異なる必要がある場合に便利である
1682+
kind 'wildoptions' に "pum" が含まれている場合にポップアップメニュー
1683+
に表示される、短い種類のテキスト (1 文字または 2 文字)
1684+
menu ポップアップメニューの、マッチした項目の後ろに表示される追加テ
1685+
キスト
1686+
info 詳しい説明が情報ポップアップに表示される。表示するには
1687+
|+popupwin| 機能が必要である。
1688+
文字列でも辞書でもない項目、および "word" キーを持たない辞書項目は無視される。
1689+
'wildoptions' に "pum" が含まれていない場合、"word" のみが表示される。
16761690

16771691
引数には次の意味があります:
16781692
ArgLead すでに入力されている補完対象の文字列。note "-nargs=1"

en/map.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 9.2. Last change: 2026 Feb 14
1+
*map.txt* For Vim version 9.2. Last change: 2026 May 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1693,7 +1693,21 @@ For the "custom" argument, the function should return the completion
16931693
candidates one per line in a newline separated string.
16941694
*E1303*
16951695
For the "customlist" argument, the function should return the completion
1696-
candidates as a Vim List. Non-string items in the list are ignored.
1696+
candidates as a Vim List. Each item may be either a string or a |Dictionary|.
1697+
A Dictionary item may have the following keys:
1698+
word (required) the text inserted into the command line when the
1699+
item is selected
1700+
abbr alternative text shown in the popup menu in place of "word",
1701+
when 'wildoptions' contains "pum"; useful when the inserted
1702+
text and the displayed text should differ
1703+
kind short kind text (one or two characters), shown in the popup
1704+
menu when 'wildoptions' contains "pum"
1705+
menu extra text shown after the match in the popup menu
1706+
info long description shown in the info popup; the |+popupwin|
1707+
feature is required to display it
1708+
Items that are neither a string nor a Dictionary, and Dictionary items without
1709+
a "word" key, are ignored. When 'wildoptions' does not contain "pum", only
1710+
"word" is shown.
16971711

16981712
The function arguments are:
16991713
ArgLead the leading portion of the argument currently being

0 commit comments

Comments
 (0)