-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
45 lines (34 loc) · 1.05 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# use UTF8
#set -g utf8
#set-window-option -g utf8 on
# mouse support
set -g mouse on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 20000 (20k)
set -g history-limit 20000
# set Ctrl-o as the default prefix key combination
# and unbind C-b to free it up
#set -g prefix C-o
#unbind C-b
# use send-prefix to pass C-o through to application
#bind C-o send-prefix
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# map Vi movement keys as pane movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# use vim keybindings in copy mode
setw -g mode-keys vi
set-window-option -g mode-keys vi
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle