在控制台vim中输入命令时显示命令?


16

例如,在gvim中,如果我处于正常模式,则按“ ayiw将单词拉到寄存器a中,gvim在我在右下角附近键入它时显示” ayi”。如果可以的话,是否可以在console vim中获得此实时显示?

Answers:


26

只需将此行添加到您的.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}.
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.