键盘映射
一些模式所对应的字符
- "n" - Normal
- "v" - Visual (including Select)
- "o" - Operator-pending
- "i" - Insert
- "c" - Cmd-line
- "s" - Select
- "x" - Visual
- "l" - langmap
- "" Normal, Visual and Operator-pending
一些映射命令
Command | Normal | Visual | Operator-pending | Insert | Cmd-line |
---|---|---|---|---|---|
:map | y | y | y | ||
:nmap | y | ||||
:vmap | y | ||||
:omap | y | ||||
:imap | y | ||||
:cmap | y | ||||
:map! | y | y |
非递归映射
:noremap
:nnoremap
:vnoremap
:onoremap
:inoremap
:cnoremap
取消映射
:unmap
取消 map 映射:nunmap
取消 Normal 映射:vunmap
取消 Visual 映射:ounmap
取消 Operator-pending 映射:iunmap
取消 Insert 映射:cunmap
取消 Cmd-line 映射:mapclear
移除所有用户定义和系统默认的键盘映射