summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-07 17:29:48 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-07 17:29:48 +0200
commit9a033d7b18651acbb7eda4b7f39a27c01748fb70 (patch)
tree996ceabce395813ba39a08c4930e672f9e465839 /runtime
parentd7e5e9430ae192c76f1f03c3ac53fae823d94c33 (diff)
patch 8.2.1811: mapping Ctrl-key does not work for '{', '}' and '|'v8.2.1811
Problem: Mapping Ctrl-key does not work for '{', '}' and '|'. Solution: Remove the shift modifier. (closes #6457)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/map.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
index df96bde941..cfd48b5a78 100644
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -839,8 +839,15 @@ execute a shell command, e.g.: `!ls` Or put the lines in your |vimrc|.
When modifyOtherKeys is enabled you can map <C-[> and <C-S-{>: >
imap <C-[> [[[
- imap <C-S-{> {{{
-Without modifyOtherKeys <C-[> and <C-S-{> are indistinguishable from Esc.
+ imap <C-{> {{{
+Without modifyOtherKeys <C-[> and <C-{> are indistinguishable from Esc.
+Note that <C-{> is used and not <C-S-[> or <C-S-{>. This works on most
+keyboards. Similarly, <C-}> is used instead of <C-S-]> or <C-S-}> and
+<C-|> instead of <C-S-\> or <C-S-|>. Note that '|' has a special meaning in a
+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.
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