From e64f851197c82c848c40d9be274e5a77e2dbb892 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 20 Jun 2017 10:56:57 +0200 Subject: .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. --- .tmux.conf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to '.tmux.conf') 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" -- cgit v1.2.3-54-g00ecf