From 7cb6fec68031936ce971f773bc9eab2ce0283c50 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 14 Jul 2019 21:20:09 +0100 Subject: [PATCH] Fix C-h not selecting a pane in code-mode-vi --- tmux.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/tmux.conf b/tmux.conf index a2c34c2..66e56f6 100644 --- a/tmux.conf +++ b/tmux.conf @@ -57,6 +57,7 @@ bind "%" split-window -h -c "#{pane_current_path}" # Integrate pane selection with vim is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' +unbind -T copy-mode-vi C-h bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"