Add vi-mode pane switching to tmux

This commit is contained in:
Daniel Lynn 2021-06-16 11:39:11 -05:00
parent 527cab9cd0
commit cee9af49cc

View File

@ -20,6 +20,12 @@ bind-key ] paste-buffer
bind-key -n C-S-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind-key -n C-S-v run "xclip -o -sel clipboard | tmux load-buffer -; tmux paste-buffer"
# Vi-mode pane switching
bind-key h "select-pane -L"
bind-key j "select-pane -D"
bind-key k "select-pane -U"
bind-key l "select-pane -R"
# Integrate with the system selection clipboard
unbind -n -Tcopy-mode-vi MouseDragEnd1Pane
bind-key -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i > /dev/null"