Reputation: 96484
It scrolls ok in vim but not in tmux.
I followed suggestions like adding
set -g history-limit 1000
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
setw -g mode-mouse on
set-window-option -g mode-mouse on
to .tmux.conf
but none of them helped
All I get, regardless of the above is history command scrolling.
Upvotes: 23
Views: 13507
Reputation: 45
set -g mouse on
Just like this if it's going in your ~/.tmux.conf
Upvotes: 1
Reputation: 8900
Just to link two relevant answers together:
Why does
tmux set -g mouse-mode on
no longer work?
As pointed out in this answer, the option got renamed since tmux version 2.1 to:
tmux set -g mouse on
To find your local tmux version, just run tmux -V
.
Upvotes: 22
Reputation:
Correct command is:
set -g mode-mouse on
You can also add it to your ~/.tmux.conf
Upvotes: 36