Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 1 down vote accepted

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

share|improve this answer

Your Answer


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.