aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.tmux.conf9
1 files changed, 4 insertions, 5 deletions
diff --git a/.tmux.conf b/.tmux.conf
index 0d21865..f4434d9 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -2,7 +2,6 @@
set -g bell-action any
set -g default-terminal "tmux-256color"
-set -ga terminal-overrides ",xterm-termite:Tc"
set-option -ga update-environment ' DISPLAY'
# split windows like vim
@@ -47,8 +46,8 @@ unbind -T root WheelDownPane
bind -T root WheelUpPane if -Ft= '#{mouse_any_flag}' 'send-keys -M' 'if -Ft= "#{pane_in_mode}" "send-keys -M" "copy-mode -u"'
# Wheel scroll in pane WHILE in copy-mode
-bind -tvi-copy WheelUpPane halfpage-up
-bind -tvi-copy WheelDownPane halfpage-down
+bind -T copy-mode-vi WheelUpPane send -X halfpage-up
+bind -T copy-mode-vi WheelDownPane send -X halfpage-down
# Logout with Ctrl+D
bind-key ^D detach-client
@@ -61,8 +60,8 @@ set -g status-keys vi
setw -g mode-keys vi
# v and y like vi in copy-mode
-bind-key -t vi-copy 'v' begin-selection
-bind-key -t vi-copy 'y' copy-selection
+bind-key -T copy-mode-vi v send -X begin-selection
+bind-key -T copy-mode-vi y send -X copy-selection
# clipboard settings
set -s set-clipboard on
bind-key C-p run "xclip -o | tmux load-buffer - ; tmux paste-buffer"