@@ -10,18 +10,19 @@ This subject is introduced in sections |05.4|, |24.7| and |40.1| of the user
1010manual.
1111
12121. Key mapping | key-mapping |
13- 1.1 MAP COMMANDS | :map-commands |
14- 1.2 Special arguments | :map-arguments |
15- 1.3 Mapping and modes | :map-modes |
16- 1.4 Listing mappings | map-listing |
17- 1.5 Mapping special keys | :map-special-keys |
18- 1.6 Special characters | :map-special-chars |
19- 1.7 What keys to map | map-which-keys |
20- 1.8 Examples | map-examples |
21- 1.9 Using mappings | map-typing |
22- 1.10 Mapping alt-keys | :map-alt-keys |
23- 1.11 Mapping in modifyOtherKeys mode | modifyOtherKeys |
24- 1.12 Mapping an operator | :map-operator |
13+ 1.1 MAP COMMANDS | :map-commands |
14+ 1.2 Special arguments | :map-arguments |
15+ 1.3 Mapping and modes | :map-modes |
16+ 1.4 Listing mappings | map-listing |
17+ 1.5 Mapping special keys | :map-special-keys |
18+ 1.6 Special characters | :map-special-chars |
19+ 1.7 What keys to map | map-which-keys |
20+ 1.8 Examples | map-examples |
21+ 1.9 Using mappings | map-typing |
22+ 1.10 Mapping alt-keys | :map-alt-keys |
23+ 1.11 Mapping in modifyOtherKeys mode | modifyOtherKeys |
24+ 1.12 Mapping with Kitty keyboard protocol | kitty-keyboard-protocol |
25+ 1.13 Mapping an operator | :map-operator |
25262. Abbreviations | abbreviations |
26273. Local mappings and functions | script-local |
27284. User-defined commands | user-commands |
@@ -1009,7 +1010,34 @@ When the 'esckeys' option is off, then modifyOtherKeys will be disabled in
10091010Insert mode to avoid every key with a modifier causing Insert mode to end.
10101011
10111012
1012- 1.12 MAPPING AN OPERATOR *:map-operator*
1013+ 1.12 MAPPING WITH KITTY KEYBOARD PROTOCOL *kitty-keyboard-protocol*
1014+
1015+ If the value of 'term' contains "kitty" then Vim will send out an escape
1016+ sequence to enable the Kitty keyboard protocol. This can be changed with the
1017+ 'keyprotocol' option.
1018+
1019+ Like modifyOtherKeys, this will make it possible to distinguish between more
1020+ keys with modifiers. Also, this protocol sends an escape sequence for the Esc
1021+ key, so that Vim does not need to use a timeout to know whether receiving an
1022+ Esc character means the Esc key was pressed or it's the start of an escape
1023+ sequence.
1024+
1025+ Vim automatically detects if the Kitty keyboard protocol was enabled when it
1026+ spots the response to the status request (this should be part of the | t_TI |
1027+ termcap entry). To see if Vim detected such an escape sequence use: >
1028+ :verbose map
1029+ The first line will then show "Kitty keyboard protocol: {value} " (possibly
1030+ translated). The meaning of {value} :
1031+ Unknown no status received yet
1032+ Off protocol is not used
1033+ On protocol is used
1034+ Disabled protocol was used but expected to have been disabled
1035+ by 't_TE'
1036+ Cleared protocol expected to have beeen disabled by 't_TE',
1037+ previous state is unknown
1038+
1039+
1040+ 1.13 MAPPING AN OPERATOR *:map-operator*
10131041
10141042An operator is used before a {motion} command. To define your own operator
10151043you must create a mapping that first sets the 'operatorfunc' option and then
0 commit comments