How can I bin a key sequence to ESC in zsh?

I wish to do the following

bindkey "jj" <esc>

but cannot find the code for the Esc key

Thanks

link|improve this question

75% accept rate
feedback

1 Answer

up vote 0 down vote accepted

Esc is ASCII 0x1B, so all of \e, \x1b or \033 should work.

link|improve this answer
Yes, but the bindkey only seems to allow you to bind to widgets. I did manage to solve this in the end by binding to vi-cmd-mode which is what I was trying to achieve. – mrwooster Jun 15 '11 at 10:27
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.