Is there a way to emulate Vim's 'imap' functionality in bash?
For example, in Vim I use imap jj <ESC>
and imap kk <TAB>
as convenience shortcuts. For those who don't use Vim, it means that when you type jj in short succession, it would be the equivalent of hitting escape.
The benefit is two very commonly used keystrokes easily accessible from the home row.
I realize there's a way in bash to bind existing keys, or combinations of keys to something else... but is there a way to bind sequences of keys pressed separately?