3

How to embed first part of the command (operator pending mode) in airline? For example, I'd like to have separate section on the right side to show me this partial command.

If I set this simply with :set showcmd, it's displayed under airline status bar. Is it possible to have it displayed in the special section of the status bar, instead of beneath it?

1 Answer 1

3

Outside of :set showcmd, there's no way to programmatically access the currently typed command, so there's no chance to have airline (or any other plugin) display it, unfortunately.

2
  • Thank you for your response. But I'm just wondering if it's really impossible, considering airline displays for example mode (:set showmode), and even though I wasn't able to determine how exactly it sets airline_current_mode variable, it is still able to display correct mode, accessing it programmatically somehow.
    – qiubix
    Mar 22, 2015 at 11:44
  • You can get the current mode via the built-in mode() function; there's nothing similar for the typed command (yet). Mar 22, 2015 at 18:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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