例如,在 gvim 中,如果我处于正常模式,然后按“ayiw”将单词拉入寄存器 a,则 gvim 会在右下角附近显示我输入的“ayi”。是否可以在控制台 vim 中获得此实时显示,如果可以,如何实现?
答案1
只需将此行添加到您的.vimrc
:
set showcmd
来自 Vim 帮助:
Show (partial) command in the last line of the screen. Set this
option off if your terminal is slow.
In Visual mode the size of the selected area is shown:
- When selecting characters within a line, the number of characters.
- When selecting more than one line, the number of lines.
- When selecting a block, the size in screen characters:
{lines}x{columns}.