From 6b97c96c2e651e8141adb34071510eb00b35f096 Mon Sep 17 00:00:00 2001 From: Tony Blundell Date: Wed, 11 Jan 2017 11:48:57 +0000 Subject: [PATCH] tmux - fix scrolling --- dotfiles/tmux.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index b732728..cb5a987 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -22,9 +22,13 @@ set-option -g window-status-current-fg black set-option -g window-status-format " #I #W " set-option -g window-status-current-format " #I #W " -# Scroll with mouse & vim keys +# Scroll with mouse +set-option -g mouse on +bind-key -t vi-copy WheelUpPane scroll-Up +bind-key -t vi-copy WheelDownPane scroll-down + +# Use Vim keybindings in copy mode set-window-option -g mode-keys vi -set-window-option -g mouse on # Disable repeat when switching panes bind-key Up select-pane -U