X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=dotfiles%2Ftmux%2F.tmux.conf;h=242c9531415bc9caec530d2f2b32fa264e32a1ba;hb=894a1bf1ac8f2a3a79992ae8c021a857258d7efd;hp=9bfe9b12fcd32be06b47bc0ffc9f45b4377ffb0f;hpb=b0d3cc133e4e19763b08f6c69eca2a3cfd7fb7ad;p=shutils.git diff --git a/dotfiles/tmux/.tmux.conf b/dotfiles/tmux/.tmux.conf index 9bfe9b1..242c953 100644 --- a/dotfiles/tmux/.tmux.conf +++ b/dotfiles/tmux/.tmux.conf @@ -1,8 +1,19 @@ -set -g default-terminal "screen-256color" -set -g mouse on +# Prefer xterm-256color as vim (neovim) within mutt switches to monochrome with +# screen-256color. +set -g default-terminal "xterm-256color" +#set -g mouse on set-window-option -g xterm-keys on +# Pass escape immediately to vim +set -sg escape-time 0 + +# Copy to X11 clipboard +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + +bind-key m set-option -g mouse on \; display 'Mouse: ON' +bind-key M set-option -g mouse off \; display 'Mouse: OFF' + # {{{{ Gruvbox color scheme # https://github.com/egel/tmux-gruvbox/blob/master/tmux-gruvbox-dark.conf