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?

2

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.

  • 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 '15 at 11:44
  • You can get the current mode via the built-in mode() function; there's nothing similar for the typed command (yet). – Ingo Karkat Mar 22 '15 at 18:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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