by JakeSc · 14y ago · 0 comments
$ set -o vi This command changes the key bindings to vi's. If vi's your favorite editor, you'll love this. I'll cover the vi mode in more details in the next part of the article.
I'd love to find a cheat sheet for vi bash usage (and also an indicator for which editing mode I'm in).
This has made me even happier than learning I could get vim key bindings in vim's own command-line mode[1]. Thanks again!
[1](C-f from command-line mode, or q: from normal)
Luckily, zsh actually allows you to change your prompt when the mode changes. I have mine set up to change the color of part of it whenever I'm in command mode. Definitely worth setting up.
In zsh, you can type: "bindkey" to get a listing. IIRC, in bash it is "bind -p".