diff --git a/tmux.normal.conf b/tmux.normal.conf index bf70c71..9e02f30 100644 --- a/tmux.normal.conf +++ b/tmux.normal.conf @@ -122,9 +122,9 @@ bind C-v run "xclip -o | tmux load-buffer - ; tmux paste-buffer" bind C-y run "tmux show-buffer | xclip -sel clip" # # (copy mode) v,y and escape to select, copy and cancel respectively -bind -t vi-copy y copy-selection -bind -t vi-copy v begin-selection -bind -t vi-copy Escape cancel +bind -Tcopy-mode-vi y send -X copy-selection +bind -Tcopy-mode-vi v send -X begin-selection +bind -Tcopy-mode-vi Escape send -X cancel # # bind [0-9] to switching directly to the respective window bind -n M-1 select-window -t 1 diff --git a/tmux.powerline.conf b/tmux.powerline.conf index ab0b6eb..0cb8904 100644 --- a/tmux.powerline.conf +++ b/tmux.powerline.conf @@ -122,9 +122,9 @@ bind C-v run "xclip -o | tmux load-buffer - ; tmux paste-buffer" bind C-y run "tmux show-buffer | xclip -sel clip" # # (copy mode) v,y and escape to select, copy and cancel respectively -bind -t vi-copy y copy-selection -bind -t vi-copy v begin-selection -bind -t vi-copy Escape cancel +bind -Tcopy-mode-vi y send -X copy-selection +bind -Tcopy-mode-vi v send -X begin-selection +bind -Tcopy-mode-vi Escape send -X cancel # # bind [0-9] to switching directly to the respective window bind -n M-1 select-window -t 1