Super User is a question and answer site for computer enthusiasts and power users. 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

Having switched to vim-style pane navigation in tmux with the following:

bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

How can I turn off the original key bindings, specifically C-a <arrow key>?

share|improve this question
up vote 4 down vote accepted

Use unbind-key:

unbind Left
unbind Down
unbind Up
unbind Right
share|improve this answer

If you want to stick to vim-like navigation, would be useful to remap the resize-pane also:

# vim-like pane resizing  
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R

# vim-like pane switching
bind -r k select-pane -U 
bind -r j select-pane -D 
bind -r h select-pane -L 
bind -r l select-pane -R 

# and now unbind keys
unbind Up     
unbind Down   
unbind Left   
unbind Right  

unbind C-Up   
unbind C-Down 
unbind C-Left 
unbind C-Right

I'll show you my .tmux.conf as an example

And by the way, don't forget to remap the 'horizontal-split' in case you have it on the h key as it will interfere with your pane-resize and pane-switch.

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.