Improve vi mode word-separator settings

This commit is contained in:
Kenneth Benzie 2020-04-02 15:08:00 +01:00
parent 33e2f0f81b
commit ee4e59b281

View File

@ -61,6 +61,9 @@ bind C-p previous-window
bind '"' split-window -c '#{pane_current_path}' bind '"' split-window -c '#{pane_current_path}'
bind '%' split-window -h -c '#{pane_current_path}' bind '%' split-window -h -c '#{pane_current_path}'
# Change word separators to better match Vim.
set -g word-separators "<>(){}[]/'\";@*+,.-_=!£$%^&:#~?`¬|\\ "
# Integrate pane selection with vim # Integrate pane selection with vim
in_vim='tmux show-window-options | grep -q "@vim#{pane_id}"' in_vim='tmux show-window-options | grep -q "@vim#{pane_id}"'
bind -n C-h if $in_vim 'send-keys C-h' 'select-pane -L' bind -n C-h if $in_vim 'send-keys C-h' 'select-pane -L'