Improve vi mode word-separator settings
This commit is contained in:
parent
33e2f0f81b
commit
ee4e59b281
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user