Skip to content

Commit 8497eb2

Browse files
authored
Merge pull request #1460 from vim-jp/hh-update-map
Update map.{txt,jax}
2 parents 66044c7 + 433e9d2 commit 8497eb2

File tree

2 files changed

+47
-19
lines changed

2 files changed

+47
-19
lines changed

doc/map.jax

+25-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim バージョン 9.1. Last change: 2023 May 28
1+
*map.txt* For Vim バージョン 9.1. Last change: 2024 Jan 25
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -20,9 +20,10 @@
2020
1.9 マップを使う |map-typing|
2121
1.10 Altキーを使ったマップ |:map-alt-keys|
2222
1.11 Metaキーを使ったマップ |:map-meta-keys|
23-
1.12 modifyOtherKeys モードのマップ |modifyOtherKeys|
24-
1.13 Kitty キーボードプロトコルを使ったマップ |kitty-keyboard-protocol|
25-
1.14 オペレータの作成 |:map-operator|
23+
1.12 superキーまたはcommandキーのマップ |:map-super-keys|
24+
1.13 modifyOtherKeys モードのマップ |modifyOtherKeys|
25+
1.14 Kitty キーボードプロトコルを使ったマップ |kitty-keyboard-protocol|
26+
1.15 オペレータの作成 |:map-operator|
2627
2. 短縮入力 |abbreviations|
2728
3. ローカルマップとローカル関数 |script-local|
2829
4. ユーザー定義コマンド |user-commands|
@@ -396,7 +397,8 @@ Note:
396397

397398
*E1255* *E1136*
398399
<Cmd><ScriptCmd> コマンドではマッピング定義の {rhs}<CR> で終わる必要が
399-
あります。|Command-line| に入ることはありません。
400+
あります。|Command-line| に入ることはありません。{rhs} でリテラル <CR> を使用
401+
するには、|<lt>| を使用します。
400402

401403

402404
1.3 マップとモード *:map-modes*
@@ -582,10 +584,12 @@ Note: ビジュアルモードのマップでは "'<" マークが使えます
582584
グを追加したりクリアすることはできません。 *E1309*
583585

584586
*:map-verbose*
585-
'verbose' がゼロ以外のときにマップ一覧を表示すると、どこで定義されたのかも表示
586-
されます。例: >
587+
'verbose' がゼロ以外の場合、検出および使用された 'keyprotocol' の値が最初の行
588+
に表示されます。また、キーマップには、最後に定義された場所も表示されます。
589+
例: >
587590
588591
:verbose map <C-W>*
592+
Kitty keyboard protocol: Cleared
589593
n <C-W>* * <C-W><C-S>*
590594
Last set from /home/abcd/.vimrc
591595
@@ -971,7 +975,17 @@ Meta 修飾子には文字 "T" が使われます。例えば挿入モードで
971975
:imap <T-b> terrible
972976
973977
974-
1.12 modifyOtherKeys モードのマップ *modifyOtherKeys*
978+
1.12 SuperキーまたはCommandキーのマップ *:map-super-keys* *:map-cmd-key*
979+
980+
Super 修飾子は、Linux 上の GVim および Mac OS 上の MacVim の GUI モード
981+
(|gui_running| が 1 の場合) で使用できます。Mac を使用している場合、これは
982+
Command キーを表し、GTK GUI を使用する Linux では、Super キーを表します。
983+
文字 "D" は、Super / Command 修飾子に使用されます。
984+
985+
例えば、挿入モードで Command-b をマップするには: >
986+
:imap <D-b> barritone
987+
988+
1.13 modifyOtherKeys モードのマップ *modifyOtherKeys*
975989

976990
xterm と他のいくつかの端末は、修飾子付きのキーが特別なエスケープコードで送信さ
977991
れるモードにすることができます。Vim はこれらのコードを認識し、Backspace が文字
@@ -1035,7 +1049,7 @@ Note xterm の version 376 までは Shift-Esc が通常の Esc を送信し、S
10351049
るのを防ぐため、挿入モードで modifyOtherKeys は無効化されます。
10361050

10371051

1038-
1.13 Kitty キーボードプロトコルを使ったマップ *kitty-keyboard-protocol*
1052+
1.14 Kitty キーボードプロトコルを使ったマップ *kitty-keyboard-protocol*
10391053

10401054
'term' の値が "kitty" を含んでいる場合、Vim は Kitty キーボードプロトコルを有
10411055
効化するエスケープシーケンスを送出します。これは 'keyprotocol' オプションで変
@@ -1061,7 +1075,7 @@ Vim はステータス要求 (これは |t_TI| termcap エントリの一部の
10611075
以前の状態は不明
10621076

10631077

1064-
1.14 オペレータの作成 *:map-operator*
1078+
1.15 オペレータの作成 *:map-operator*
10651079

10661080
オペレータは {motion} コマンドと合わせて使われます。独自のオペレータを定義する
10671081
には、最初に 'operatorfunc' を設定し、そして、|g@| オペレータを呼びます。ユー
@@ -1608,6 +1622,7 @@ script2.vimを実行すると "None" が表示されます。期待した結果
16081622
-complete=help ヘルプの主題
16091623
-complete=highlight ハイライトグループ
16101624
-complete=history |:history| サブオプション
1625+
-complete=keymap キーボードマッピング
16111626
-complete=locale ロケール名 (locale -a の出力)
16121627
-complete=mapclear バッファ引数
16131628
-complete=mapping マップ

en/map.txt

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 9.1. Last change: 2023 May 28
1+
*map.txt* For Vim version 9.1. Last change: 2024 Jan 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -21,9 +21,10 @@ manual.
2121
1.9 Using mappings |map-typing|
2222
1.10 Mapping alt-keys |:map-alt-keys|
2323
1.11 Mapping meta-keys |:map-meta-keys|
24-
1.12 Mapping in modifyOtherKeys mode |modifyOtherKeys|
25-
1.13 Mapping with Kitty keyboard protocol |kitty-keyboard-protocol|
26-
1.14 Mapping an operator |:map-operator|
24+
1.12 Mapping super-keys or command keys |:map-super-keys|
25+
1.13 Mapping in modifyOtherKeys mode |modifyOtherKeys|
26+
1.14 Mapping with Kitty keyboard protocol |kitty-keyboard-protocol|
27+
1.15 Mapping an operator |:map-operator|
2728
2. Abbreviations |abbreviations|
2829
3. Local mappings and functions |script-local|
2930
4. User-defined commands |user-commands|
@@ -406,7 +407,7 @@ Note:
406407
*E1255* *E1136*
407408
<Cmd> and <ScriptCmd> commands must terminate, that is, they must be followed
408409
by <CR> in the {rhs} of the mapping definition. |Command-line| mode is never
409-
entered.
410+
entered. To use a literal <CR> in the {rhs}, use |<lt>|.
410411

411412

412413
1.3 MAPPING AND MODES *:map-modes*
@@ -586,10 +587,12 @@ While mappings are being listed, it is not possible to add or clear mappings,
586587
e.g. from a timer callback. *E1309*
587588

588589
*:map-verbose*
589-
When 'verbose' is non-zero, listing a key map will also display where it was
590+
When 'verbose' is non-zero, the detected and used 'keyprotocol' value will be
591+
displayed in the first line. Also a key map will also display where it was
590592
last defined. Example: >
591593
592594
:verbose map <C-W>*
595+
Kitty keyboard protocol: Cleared
593596
n <C-W>* * <C-W><C-S>*
594597
Last set from /home/abcd/.vimrc
595598
@@ -983,8 +986,17 @@ For the Meta modifier the "T" character is used. For example, to map Meta-b
983986
in Insert mode: >
984987
:imap <T-b> terrible
985988
989+
1.12 MAPPING SUPER-KEYS or COMMAND-KEYS *:map-super-keys* *:map-cmd-key*
986990

987-
1.12 MAPPING IN modifyOtherKeys mode *modifyOtherKeys*
991+
The Super modifier is available in GUI mode (when |gui_running| is 1) for
992+
GVim on Linux and MacVim on Mac OS. If you're on a Mac, this represents the
993+
Command key, on Linux with the GTK GUI it represents the Super key.
994+
The character "D" is used for the Super / Command modifier.
995+
996+
For example, to map Command-b in Insert mode: >
997+
:imap <D-b> barritone
998+
999+
1.13 MAPPING IN modifyOtherKeys mode *modifyOtherKeys*
9881000

9891001
Xterm and a few other terminals can be put in a mode where keys with modifiers
9901002
are sent with a special escape code. Vim recognizes these codes and can then
@@ -1046,7 +1058,7 @@ When the 'esckeys' option is off, then modifyOtherKeys will be disabled in
10461058
Insert mode to avoid every key with a modifier causing Insert mode to end.
10471059

10481060

1049-
1.13 MAPPING WITH KITTY KEYBOARD PROTOCOL *kitty-keyboard-protocol*
1061+
1.14 MAPPING WITH KITTY KEYBOARD PROTOCOL *kitty-keyboard-protocol*
10501062

10511063
If the value of 'term' contains "kitty" then Vim will send out an escape
10521064
sequence to enable the Kitty keyboard protocol. This can be changed with the
@@ -1073,7 +1085,7 @@ translated). The meaning of {value}:
10731085
previous state is unknown
10741086

10751087

1076-
1.14 MAPPING AN OPERATOR *:map-operator*
1088+
1.15 MAPPING AN OPERATOR *:map-operator*
10771089

10781090
An operator is used before a {motion} command. To define your own operator
10791091
you must create a mapping that first sets the 'operatorfunc' option and then
@@ -1629,6 +1641,7 @@ completion can be enabled:
16291641
-complete=help help subjects
16301642
-complete=highlight highlight groups
16311643
-complete=history :history suboptions
1644+
-complete=keymap keyboard mappings
16321645
-complete=locale locale names (as output of locale -a)
16331646
-complete=mapclear buffer argument
16341647
-complete=mapping mapping name

0 commit comments

Comments
 (0)