Fix C-h not selecting a pane in code-mode-vi

This commit is contained in:
Kenneth Benzie 2019-07-14 21:20:09 +01:00
parent f9f72c13ba
commit 7cb6fec680

View File

@ -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"