Normally, I use vi mode in bash. It starts off in insert mode you have to hit Esc (or Altj was it?) to get into normal (command) mode.
I also bind ↑ (up-arrow) to history-search-backward
.
What I'd like is to make it so that when I hit up arrow, not only does it do the history-search-backward, but also sets me to normal mode. (Sort of like tcsh behaves.)
I found a lot of related posts and people who have done clever things in .inputrc, but nothing quite like what I'm after here. (Like this and this in particular.)
Is this possible in bash?