有没有办法在 Vim 中查看当前映射的键?

有没有办法在 Vim 中查看当前映射的键?

问题描述:

基本上,我想查看当前缓冲区中所有插件、vimrc 等在当前缓冲区中制作的所有键映射.有没有办法做到这一点?

Basically, I'd like to view all of the keys maps made in the current buffer by all of plugins, vimrc, etc, in the current buffer. Is there anyway to do this?

您可以使用 :map 命令来做到这一点.还有其他变体.

You can do that with the :map command. There are also other variants.

  • :nmap 用于普通模式映射
  • :vmap 用于视觉模式映射
  • :imap 用于插入模式映射
  • :nmap for normal mode mappings
  • :vmap for visual mode mappings
  • :imap for insert mode mappings

以上列表并不完整.在 Vim 中输入 :help map 会给你更多信息.

The above list is not complete. Typing :help map in Vim will give you more info.