Mon, 21 Dec 2015 11:22:32 -0500
imported patch mhoward-mbp
.tmux.conf | file | annotate | diff | comparison | revisions |
--- a/.tmux.conf +++ b/.tmux.conf @@ -152,11 +152,12 @@ bind-key l select-pane -R # Look good set-option -g default-terminal "screen-256color" -# Enable mouse support (works in iTerm) -set-window-option -g mode-mouse on -set-option -g mouse-select-pane on -set-option -g mouse-resize-pane on -set-option -g mouse-select-window on +# Enable mouse support (works in iTerm) (tmux 2.x) +set -g mouse on +set -g mouse-utf8 on + +bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M +bind -n WheelDownPane select-pane -t= \; send-keys -M # Change cursor in vim to distinguish between insert and command mode set-option -g terminal-overrides '*88col*:colors=88,*256col*:colors=256,xterm*:XT:Ms=\E]52;%p1%s;%p2%s\007:Cc=\E]12;%p1%s\007:Cr=\E]112\007:Cs=\E]50;CursorShape=%?%p1%{3}%<%t%{0}%e%p1%{2}%-%;%d\007'