显示 Vim 中间命令 [英] Display Vim intermediate commands
问题描述
在vimtutor
第2.1课:DELETION COMMANDS中,#4项后有注释:
In vimtutor
Lesson 2.1: DELETION COMMANDS, there is a note after the #4 item:
字母 d
将在您键入时出现在屏幕的最后一行.Vim 正在等待你输入 w
.如果您看到 d
以外的其他字符,则表示您输入了错误;按 <ESC>
并重新开始.
The letter
d
will appear on the last line of the screen as you type it. Vim is waiting for you to typew
. If you see another character thand
you typed something wrong; press<ESC>
and start over.
但是,正如注释所说,我没有在最后一行看到中间命令.如何启用此功能?我应该在 .vimrc
中设置什么选项?
However, I do not see intermediate commands in the last line as the note says. How do I enable this? What option should I set in my .vimrc
?
推荐答案
可以用
:set showcmd
这将在您在 Vim 中键入时显示命令.同样的也可以放到.vimrc中
That will display the commands as you type it in Vim. The same can also be put into .vimrc
这篇关于显示 Vim 中间命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!