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

Re: getting zle vi-modes to show the current mode



On Nov 14,  9:31pm, Matt Wozniski wrote:
}
} If anyone can make any suggestions for improvements, I'd be happy to
} hear them.

How about:

    function zle-line-init zle-keymap-select {
      RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
      RPS2=$RPS1
      RPS3=$RPS1
      RPS4=$RPS1
      zle reset-prompt
    }
    zle -N zle-line-init
    zle -N zle-keymap-select



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