comparison runtime/doc/map.txt @ 22526:6325ef9143bc

patch 8.2.1811: mapping Ctrl-key does not work for '{', '}' and '|' Commit: https://github.com/vim/vim/commit/9a033d7b18651acbb7eda4b7f39a27c01748fb70 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 7 17:29:48 2020 +0200 patch 8.2.1811: mapping Ctrl-key does not work for '{', '}' and '|' Problem: Mapping Ctrl-key does not work for '{', '}' and '|'. Solution: Remove the shift modifier. (closes https://github.com/vim/vim/issues/6457)
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Oct 2020 17:30:03 +0200
parents 75ff30a78189
children 17c4178f26ea
comparison
equal deleted inserted replaced
22525:12f44f93c583 22526:6325ef9143bc
837 It does not take effect immediately. To have this work without restarting Vim 837 It does not take effect immediately. To have this work without restarting Vim
838 execute a shell command, e.g.: `!ls` Or put the lines in your |vimrc|. 838 execute a shell command, e.g.: `!ls` Or put the lines in your |vimrc|.
839 839
840 When modifyOtherKeys is enabled you can map <C-[> and <C-S-{>: > 840 When modifyOtherKeys is enabled you can map <C-[> and <C-S-{>: >
841 imap <C-[> [[[ 841 imap <C-[> [[[
842 imap <C-S-{> {{{ 842 imap <C-{> {{{
843 Without modifyOtherKeys <C-[> and <C-S-{> are indistinguishable from Esc. 843 Without modifyOtherKeys <C-[> and <C-{> are indistinguishable from Esc.
844 Note that <C-{> is used and not <C-S-[> or <C-S-{>. This works on most
845 keyboards. Similarly, <C-}> is used instead of <C-S-]> or <C-S-}> and
846 <C-|> instead of <C-S-\> or <C-S-|>. Note that '|' has a special meaning in a
847 mapping, see |map-bar|.
848
849 WARNING: if you map <C-[> you may very well break any key codes that start
850 with Esc. Make sure it comes AFTER other mappings.
844 851
845 A known side effect is that in Insert mode the raw escape sequence is inserted 852 A known side effect is that in Insert mode the raw escape sequence is inserted
846 after the CTRL-V key. This can be used to check whether modifyOtherKeys is 853 after the CTRL-V key. This can be used to check whether modifyOtherKeys is
847 enabled: In Insert mode type CTRL-SHIFT-V CTRL-V, if you get one byte then 854 enabled: In Insert mode type CTRL-SHIFT-V CTRL-V, if you get one byte then
848 modifyOtherKeys is off, if you get <1b>27;5;118~ then it is on. 855 modifyOtherKeys is off, if you get <1b>27;5;118~ then it is on.