[英]Vim: How to get a list of all commands that start with typed letter?
I'm currently making a transition from RubyMine to Vim and have a question regarding this video . 我目前正在从RubyMine过渡到Vim,并对这个视频有疑问。
As u can see the guy types G and after that another key to get a list of all commands starting with the letter G . 如您所见,家伙键入G ,然后键入另一个键以获取所有以字母G开头的命令的列表。
I've been searching for a solution for quite a while now but couldn't find anything useful. 我一直在寻找解决方案已有一段时间,但找不到任何有用的方法。
Thank's a lot in advance! 非常感谢!
He must be typing <Cd>
in the video. 他必须在视频中键入<Cd>
。 That's a very handy sequence for completing. 这是一个非常方便的完成序列。 Useful for things like searching for help, too. 对于搜索帮助也很有用。 And not just things that start with the string. 不仅限于以字符串开头的内容。 Eg, 例如,
:h rewi<C-d>
:rewind :trewind
:brewind :ptrewind
:crewind :sbrewind
:lrewind :tabrewind
:srewind tlib#vim#RestoreWindow()
:<letter>
ctrl D :<letter>
Ctrl D
And then, use TAB to navigate. 然后,使用TAB进行导航。
This will list all the commands starting with the letter you typed. 这将列出所有以您输入的字母开头的命令。
More on commands history... 有关命令历史的更多信息...
q:
Lists all the commands you typed. 列出您键入的所有命令。
:g/<your starting letter>/
And then use the above command, to get a list of the command starting with the letter of your preference. 然后使用上面的命令,以您的首字母开头的命令列表。
Go to the command you want and press ENTER , if you want to execute that command. 如果要执行该命令,请转到所需的命令,然后按Enter 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.