您可以设置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.
If the number of bytes is different it is also displayed: "2-6"
means two characters and six bytes.
- When selecting more than one line, the number of lines.
- When selecting a block, the size in screen characters:
{lines}x{columns}.
如果已nocompatible
设置,则默认情况下应在Vim上将其打开。
然后,只需选择所需的内容,Vim将显示字符数或在右下角选择的行。