1. Common mapping Setting method
": Combination of actions performed by map map key combination": Set key mapping
": Noremap the characters in the map key combination mapping Key": Cancels nested mappings for a character
": Unmap Map key combination": Cancel key Mapping
": Mapclear": Cancel All Mappings
": Map": View all Mappings
* Note: The map key combination can be a character, or it can be a combination of lock characters
The action performed can be a combination of a series of actions
2. Key mapping mode
Map Noremap unmap mapclear Map Normal, visual, operator wait mode
Vmap vnoremap vunmap vmapclear vmap Visual mode
Nmap nnoremap nunmap nmapclear nmap Normal mode
Omap Onoremap ounmap omapclear omap operator wait mode
map! noremap! unmap! mapclear! map! Insert and command line mode
IMAP INOREMAP IUNMAP imapclear IMAP insert mode
CMap cnoremap cunmap cmapclear cmap command line mode
* Note 1: operator wait mode after pressing an operator, VIM expects you to type
When the next action command or object
* NOTE 2: In the case of no conflict, the same mapping key can be mapped in different modes
into a different content
3. Recursive mapping
When the map key combination of the operation contains itself, it will be recursive operation until the operation error or ctrl-c interrupt
4. Mapping Command Segmentation
| The subsequent command is not a mapped operation but the next command
5. Invalidates the key
Map keys to "<Nop>" (no space behind), press the key to do nothing
Linux applications: Vim key Mapping