Browse Source

tmux: vi-mode syntax changed in 2.4

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 4 years ago
parent
commit
7e07be71e7
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      files/.tmux.conf

+ 10
- 2
files/.tmux.conf

@ -7,6 +7,8 @@ run-shell "\
# https://github.com/tmux/tmux/blob/master/CHANGES
#
# 2.4
# * vi-copy syntax changes
# 2.2
# * UTF8 autodetected, `set status-utf8` not accepted.
#
@ -79,8 +81,14 @@ bind -r L resize-pane -R 5
# buffers
#
bind = paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
if-shell -b 'test $TEST_VERSION -lt 204' "\
bind -t vi-copy 'v' begin-selection; \
bind -t vi-copy 'y' copy-selection; \
"
if-shell -b 'test $TMUX_VERSION -ge 204' "\
bind-key -T copy-mode-vi v send -X begin-seletion; \
bind-key -T copy-mode-vi y send -X copy-seletion; \
"
# clear scroll
#

Loading…
Cancel
Save