Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I want to be able to hit escape and then use vi navigation keys like b (back a word). I can do this in my regular terminal sessions by setting set -o vi in my .bashrc file.

However it's not working in tmux. I added set -o vi in my .tmux_conf file, but it only works for 1 "hit" then I get switched back into insert mode after hitting the key. So if I press [escape] i can go back one word with [b] but then the next [b] just inserts the b character.

How can I make that 'vi' mode work in my tmux sessions the same way it does at my 'plain' bash shell.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Add set -o vi to the ~/.bash_profile file

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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