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

Re: change color depending on vi-mode



On Jan 23, 12:19pm, Fabian Braennstroem wrote:
}
} I use 'adam2'. Now, I would like to know, if it is possible
} to display some information or change the color of the bar
} depending on the current vi-mode?

There was a discussion about something like this last year; search the 
archives for "Vi ZLE bindings".

The short answer is that the only way to do it is to create your own
widget functions for all of the vi commands that change modes.  There
is no "callback" associated with changing the keymap that can be used
to update the prompt.



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