copy-mode-vi key binds

This commit is contained in:
Nanda Lopes
2020-11-16 13:20:35 -03:00
parent d1e28013e0
commit a823540346

View File

@@ -35,6 +35,12 @@ if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \ if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'" "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
bind-key -T copy-mode-vi 'C-h' select-pane -L
bind-key -T copy-mode-vi 'C-j' select-pane -D
bind-key -T copy-mode-vi 'C-k' select-pane -U
bind-key -T copy-mode-vi 'C-l' select-pane -R
bind-key -T copy-mode-vi 'C-\' select-pane -l
# Use vi keybindings for tmux commandline input. # Use vi keybindings for tmux commandline input.
# Note that to get command mode you need to hit ESC twice... # Note that to get command mode you need to hit ESC twice...
set -g status-keys vi set -g status-keys vi