aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-06-20 10:56:57 +0200
committerDavid Runge <dave@sleepmap.de>2017-06-20 10:56:57 +0200
commite64f851197c82c848c40d9be274e5a77e2dbb892 (patch)
treea1e2124fffbd0ba38e1f083ccb98d200387f4897
parente51c2250794161f54932502f3a0e7231607bdb70 (diff)
downloaddotfiles-e64f851197c82c848c40d9be274e5a77e2dbb892.tar.gz
dotfiles-e64f851197c82c848c40d9be274e5a77e2dbb892.tar.bz2
dotfiles-e64f851197c82c848c40d9be274e5a77e2dbb892.tar.xz
dotfiles-e64f851197c82c848c40d9be274e5a77e2dbb892.zip
.tmux.conf: Adding updated bind-keys for copy-mode-vi begin selection and copy selection. Adding updated binds for copy-mode-vi halfpage-up/halfpage-down.
-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"