0

I have Vim in Ubuntu and also gVim in Windows. The point is that gVim displays hints in the command bar (command-line under the statusline) but Vim does not. I mean hints that appears in bottom right corner while using “multi-character” commands like yanking selected text to clipboard. For example, in visual mode, I have some text selected and press quote, plus, and y. While doing this, I can see the following in the command bar (after plus but before y): command-bar.

Unfortunately, it works out of the box in my gVim for Windows only. How can I configure the same behavior for Vim in Ubuntu?

0

1 Answer 1

0

Add set showcmd to your config.

:help showcmd:

'showcmd' 'sc'      boolean (Vim default: on, Vi default: off)
            global
    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}.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.