Sample Header Ad - 728x90

What is the current zle keymap/mode?

1 vote
1 answer
1091 views
For example, if I hit the right combination of keys to enter viins and walk away from the terminal and forget, how can I tell when I get back? How can I tell what the default mode is? The guide has this: > If you’re in the wrong mode, ‘bindkey -e’ in ~/.zshrc takes you to emacs mode and ‘bindkey -v’ to vi mode. But what *is* the mode? I'd like to know before typing. The $KEYMAP special variable is, as far as I can see, only available *within* zle widgets, and I can find nothing in man zshzle nor the zshell user guide as to how to tell what the current mode is. Any help or insight will be much appreciated.
Asked by ian (169 rep)
Nov 2, 2022, 05:30 AM
Last activity: Mar 27, 2024, 04:46 PM