VIM:可用的快捷方式? [英] VIM: available shortcuts?

查看:96
本文介绍了VIM:可用的快捷方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vim中使用许多快捷方式. 其他快捷方式由插件采用.

I use many shortcuts for my work in vim. Other shortcuts are taken by plugins.

有时我想为新命令添加一个快捷方式,但之后请注意该快捷方式已被使用.

Sometimes I would like to add a shortcut for a new command but note afterwards that the shortcut was already taken.

是否可以查看VIM中所有可用快捷方式的列表? (所有ctrl-shift-alt快捷键)

Is there a way to see a list of all available shortcuts in VIM? (all ctrl-shift-alt shortcuts)

推荐答案

键入:help index可以查看映射(由快捷方式命名)和vim本身定义的命令.

Type :help index to see the mappings (shortcuts as you name them) and commands defined by vim itself.

键入:map以查看vimrc和插件定义的映射.键入:verbose map可以知道每个映射的定义位置.

Type :map to see the mappings defined by your vimrc and plugins. Type :verbose map to know where each mapping was defined.

:help map-listing可以检查显示的内容,但是您可能已经知道了(在map.txt帮助手册中).

Also :help map-listing to check what's displayed, but you probably already know about it (it's in map.txt help manual).

这篇关于VIM:可用的快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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