I'm using "set -o vi" in bash to use vi bindings.
Is there a way to remap some other key to <Esc>, it's a real pain.
.vimrc doesn't apply as it seems to be 'regular vi', I've tried .exrc, but it doesn't work.. Anyone? Thanks :)
Printable View
I'm using "set -o vi" in bash to use vi bindings.
Is there a way to remap some other key to <Esc>, it's a real pain.
.vimrc doesn't apply as it seems to be 'regular vi', I've tried .exrc, but it doesn't work.. Anyone? Thanks :)
You can do it in bash like this:
This would bind it to the [ key.Code:bind -m vi-insert [:vi-movement-mode
You could also rebind Caps Lock to Escape. This can be done in the keyboard layout manager (http://www.jveweb.net/en/archives/20...eweb_en_017_01), or with:
Code:xmodmap -e "clear Lock" && xmodmap -e "keycode 66 = Escape"