My favorite text editor beeing VIM made me add the follwing line to my ~/.bashrc
set -o vi
As expected, hitting escape lets me execute a vi command, BUT ONLY ONE ?!? For example if I do this:
escape, b, b
it jumps to the beginning of the word and then types "b" to the line instead of jumping another word back.
This happens on all my osx boxes (10.6 and 10.7) and non of the linuxes I use.
Anyone else experiencing this? Or is this expected?
set -oto your question (or post it as a comment for somebody with editing rights to add)? – patrix♦ Jan 2 '12 at 11:09~/.bashrcwith onlyset -ovi and it seems that terminal ignores it becauseset -oshows emacs on... investigating further, hints welcome... – anonymous tekkie Jan 2 '12 at 12:16bash --norc --noprofileand set vi mode manually. If this works the problem is in one of the init files. – patrix♦ Jan 2 '12 at 12:19~/.profilewithif [ -f ~/.bashrc ]; then . ~/.bashrc fithis way I only have to worry about the rc and can copy it between systems. Thanks for hints patrx – anonymous tekkie Jan 2 '12 at 12:29-ftest (does it exist and is it a file) should be-r(does it exist, is it a file and is it readable). Also, you can simplify the code a little to[ -r ~/.bashrc ] && . ~/.bashrc(it’s a matter of taste, but this style is used in/etc/profile, for example). – Chris Page Jan 5 '12 at 8:27