-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
28 lines (22 loc) · 1.03 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set -g default-terminal "screen-256color"
# https://github.com/tmux/tmux/wiki/Clipboard#setting-the-ms-capability
set -sa terminal-features ",screen-256color:RGB:clipboard"
# https://vi.stackexchange.com/questions/22224/change-neovim-cursor-in-insert-mode-under-st-simple-terminal-and-tmux/22239#22239
set -as terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[2 q'
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind C-r rotate-window
unbind C-o
# https://github.com/neovim/neovim/wiki/FAQ#esc-in-tmux-or-gnu-screen-is-delayed
# https://man.openbsd.org/tmux#escape-time
set -sg escape-time 10
# https://neovim.io/doc/user/options.html#'autoread'
# https://man.openbsd.org/tmux#focus-events
set -g focus-events on
# https://dev.to/iggredible/the-easy-way-to-copy-text-in-tmux-319g
setw -g mode-keys vi
# https://github.com/tmux/tmux/wiki/Getting-Started#copy-mode-key-bindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel