diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-19 13:07:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-19 13:07:03 +0100 |
commit | 9f62ea01a08e69f44050f59469a0e64beddefac0 (patch) | |
tree | 845ef80a2628569084cf289aa1ed569b16ecaeee /runtime/doc/map.txt | |
parent | 605d02a9b73cb49ac5022a127db3eac7e16a5d83 (diff) |
patch 9.0.0794: there is no way to find out if modifyOtherKeys has been seenv9.0.0794
Problem: There is no way to find out if an escape sequence with
modifyOtherKeys has been seen.
Solution: Add a notice with ":verbose map".
Diffstat (limited to 'runtime/doc/map.txt')
-rw-r--r-- | runtime/doc/map.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index bd1381a37d..4ac307ceec 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -989,6 +989,11 @@ mapping, see |map-bar|. WARNING: if you map <C-[> you may very well break any key codes that start with Esc. Make sure it comes AFTER other mappings. +Vim automatically detects if the modifyOtherKeys mode was enabled when it +spots an escape sequence that must have been created by it. To see if Vim +detected such an escape sequence use `:verbose map`, the first line will then +show "Seen modifyOtherKeys: true" (possibly translated). + A known side effect is that in Insert mode the raw escape sequence is inserted after the CTRL-V key. This can be used to check whether modifyOtherKeys is enabled: In Insert mode type CTRL-SHIFT-V CTRL-V, if you get one byte then |