title: Is there a way to switch Bash or zsh from Emacs mode to vi mode with a keystroke?
body: <p>I'd like to be able to switch temporarily from emacs mode to vi mode, since vi mode is <em>sometimes</em> better, but I'm usually half-way through typing something before I realize I want to use vi mode.</p>
  
  <p>I don't want to switch permanently to vi mode, because I normally prefer emacs mode on the command line, mostly because it's what I'm used to, and over the years many of the keystrokes have become second nature. (As an editor I generally use emacs in viper mode, so that I can use <em>both</em> vi and emacs keystrokes, since I found myself accidentally using them in vi all the time, and screwing things up, and because in some cases I find vi keystrokes more memorable and handy, and in other cases emacs.)</p>