diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index b6196a8..c837427 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -31,6 +31,8 @@ setw -g mode-keys vi set -g mouse on +set -g focus-events on + # smart pane switching with awareness of vim splits bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"