Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: In Vi mode, show whether "insert" or "command" state is active



On Mon, Dec 22, 2014 at 1:44 PM, ZyX <kp-pav@xxxxxxxxx> wrote:
> And this should be changed prompt/rprompt, not changing
> cursor because changing cursor shape is less likely to work

OK.  You could do things the same way Bash's brand-new
'show-mode-in-prompt' feature does things:  you could add one extra
character to the beginning of the prompt.  A colon in vicmd mode; a
plus sign in viins mode.

This should work reliably in every terminal emulator.



Messages sorted by: Reverse Date, Date, Thread, Author