Browse Source

add C-h and C-l to tmux for more vim-like bindings

vim-swap-undo
Charles Reid 6 years ago
parent
commit
3b73777c25
  1. 2
      .tmux.conf

2
.tmux.conf

@ -33,6 +33,8 @@ bind-key h select-pane -L @@ -33,6 +33,8 @@ bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key C-h select-pane -L
bind-key C-l select-pane -R
# smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-h) || tmux select-pane -L"

Loading…
Cancel
Save