有没有办法在 Vim 中查看当前映射的键? [英] Is there any way to view the currently mapped keys in Vim?

查看:29
本文介绍了有没有办法在 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.

这篇关于有没有办法在 Vim 中查看当前映射的键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆