diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-10 22:09:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-10 22:09:11 +0100 |
commit | 5ef1c6a4838a9629b793f3ae676f72a764171b00 (patch) | |
tree | f496545a97dd3ce594f7771891c4471700cdcbe9 /runtime/doc/map.txt | |
parent | a9aa86ff951b7908b615a61a0e216901b96bc0eb (diff) |
Update runtime files
Diffstat (limited to 'runtime/doc/map.txt')
-rw-r--r-- | runtime/doc/map.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index d1202a7565..f27c2c16dd 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -1,4 +1,4 @@ -*map.txt* For Vim version 8.1. Last change: 2019 Oct 20 +*map.txt* For Vim version 8.1. Last change: 2019 Nov 09 VIM REFERENCE MANUAL by Bram Moolenaar @@ -358,6 +358,8 @@ Some commands work both in Insert mode and Command-line mode, some not: :cmap :cnoremap :cunmap :cmapclear - yes - :lmap :lnoremap :lunmap :lmapclear yes* yes* yes* +* If 'iminsert' is 1, see |language-mapping| below. + The original Vi did not have separate mappings for Normal/Visual/Operator-pending mode and for Insert/Command-line mode. Therefore the ":map" and ":map!" commands enter and display mappings for @@ -834,13 +836,21 @@ In case the modifyOtherKeys mode causes problems you can disable it: > let &t_TI = "" let &t_TE = "" It does not take effect immediately. To have this work without restarting Vim -execute a shell command, e.g.: `!ls` +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. A known side effect 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-V CTRL-V, if you get one byte then modifyOtherKeys is off, if you get <1b>27;5;118~ then it is on. +When the 'esckeys' option is off, then modifyOtherKeys will be disabled in +Insert mode to avoid every key with a modifier causing Insert mode to end. + 1.12 MAPPING AN OPERATOR *:map-operator* |