Mercurial > vim
comparison runtime/doc/map.txt @ 18594:e9a47bcf7b94
Update runtime files
Commit: https://github.com/vim/vim/commit/5ef1c6a4838a9629b793f3ae676f72a764171b00
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 10 22:09:11 2019 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Nov 2019 22:15:04 +0100 |
parents | 6d11fc4aa683 |
children | af69c9335223 |
comparison
equal
deleted
inserted
replaced
18593:89a359d7bcd2 | 18594:e9a47bcf7b94 |
---|---|
1 *map.txt* For Vim version 8.1. Last change: 2019 Oct 20 | 1 *map.txt* For Vim version 8.1. Last change: 2019 Nov 09 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
355 Insert Command-line Lang-Arg ~ | 355 Insert Command-line Lang-Arg ~ |
356 :map! :noremap! :unmap! :mapclear! yes yes - | 356 :map! :noremap! :unmap! :mapclear! yes yes - |
357 :imap :inoremap :iunmap :imapclear yes - - | 357 :imap :inoremap :iunmap :imapclear yes - - |
358 :cmap :cnoremap :cunmap :cmapclear - yes - | 358 :cmap :cnoremap :cunmap :cmapclear - yes - |
359 :lmap :lnoremap :lunmap :lmapclear yes* yes* yes* | 359 :lmap :lnoremap :lunmap :lmapclear yes* yes* yes* |
360 | |
361 * If 'iminsert' is 1, see |language-mapping| below. | |
360 | 362 |
361 The original Vi did not have separate mappings for | 363 The original Vi did not have separate mappings for |
362 Normal/Visual/Operator-pending mode and for Insert/Command-line mode. | 364 Normal/Visual/Operator-pending mode and for Insert/Command-line mode. |
363 Therefore the ":map" and ":map!" commands enter and display mappings for | 365 Therefore the ":map" and ":map!" commands enter and display mappings for |
364 several modes. In Vim you can use the ":nmap", ":vmap", ":omap", ":cmap" and | 366 several modes. In Vim you can use the ":nmap", ":vmap", ":omap", ":cmap" and |
832 | 834 |
833 In case the modifyOtherKeys mode causes problems you can disable it: > | 835 In case the modifyOtherKeys mode causes problems you can disable it: > |
834 let &t_TI = "" | 836 let &t_TI = "" |
835 let &t_TE = "" | 837 let &t_TE = "" |
836 It does not take effect immediately. To have this work without restarting Vim | 838 It does not take effect immediately. To have this work without restarting Vim |
837 execute a shell command, e.g.: `!ls` | 839 execute a shell command, e.g.: `!ls` Or put the lines in your |vimrc|. |
840 | |
841 When modifyOtherKeys is enabled you can map <C-[> and <C-S-{>: > | |
842 imap <C-[> [[[ | |
843 imap <C-S-{> {{{ | |
844 Without modifyOtherKeys <C-[> and <C-S-{> are indistinguishable from Esc. | |
838 | 845 |
839 A known side effect effect is that in Insert mode the raw escape sequence is | 846 A known side effect effect is that in Insert mode the raw escape sequence is |
840 inserted after the CTRL-V key. This can be used to check whether | 847 inserted after the CTRL-V key. This can be used to check whether |
841 modifyOtherKeys is enabled: In Insert mode type CTRL-V CTRL-V, if you get | 848 modifyOtherKeys is enabled: In Insert mode type CTRL-V CTRL-V, if you get |
842 one byte then modifyOtherKeys is off, if you get <1b>27;5;118~ then it is on. | 849 one byte then modifyOtherKeys is off, if you get <1b>27;5;118~ then it is on. |
850 | |
851 When the 'esckeys' option is off, then modifyOtherKeys will be disabled in | |
852 Insert mode to avoid every key with a modifier causing Insert mode to end. | |
843 | 853 |
844 | 854 |
845 1.12 MAPPING AN OPERATOR *:map-operator* | 855 1.12 MAPPING AN OPERATOR *:map-operator* |
846 | 856 |
847 An operator is used before a {motion} command. To define your own operator | 857 An operator is used before a {motion} command. To define your own operator |