From cee9af49cc77e0b2be7643678054aae072bd5046 Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Wed, 16 Jun 2021 11:39:11 -0500 Subject: [PATCH] Add vi-mode pane switching to tmux --- tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tmux.conf b/tmux.conf index e92d026..cc15be3 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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"