tmux: Enter copy mode with ctrl-i
[cmccabe-etc] / .tmux.conf
1 #
2 # ████████ ███    ███ ██    ██ ██   ██
3 #    ██    ████  ████ ██    ██  ██ ██
4 #    ██    ██ ████ ██ ██    ██   ███
5 #    ██    ██  ██  ██ ██    ██  ██ ██
6 #    ██    ██      ██  ██████  ██   ██
7 #
8
9 # Global key options.
10 # Turn off esc-wait so that vi works correctly.
11 set-option -sg escape-time 0
12
13 # Use control-K as the prefix.
14 set -g prefix C-k
15 unbind C-b
16 bind C-k send-prefix
17
18 # Use vi keys everywhere.
19 set-window-option -g mode-keys vi
20 set-option -g status-keys vi
21
22 # History settings.
23 set-option -g history-limit 100000
24
25 # Scary global settings.
26 # The UTF8 stuff doesn't seem to be recognized any more?
27 set-window-option -g xterm-keys on
28 #set-window-option -g utf8 on
29 #set-option -g status-utf8 on
30 #set-window-option -g mode-mouse off # disable mouse
31 #set -g mouse-select-pane off
32 set -g default-terminal "screen-256color"
33 set -as terminal-overrides ",*:Tc"
34 set -g visual-bell off
35
36 # Appearance.
37 set-window-option -g window-status-current-style "fg=black bg=cyan"
38 set-option -g status-bg blue
39 set-option -g status-fg white
40 set-option -g status-interval 10
41 set-option -g visual-activity off 
42 set-window-option -g monitor-activity off
43
44 # Require the prefix before each command for moving around.
45 set-option -g repeat-time 0
46
47 # Enter copy-mode with ctrl-i
48 bind-key C-i copy-mode
49
50 # Moving between panes and windows with the F-keys.
51 #bind-key -n F5 prev
52 #bind-key -n F6 select-pane -t :.+
53 #bind-key -n F7 select-pane -t :.-
54 #bind-key -n F8 next
55
56 # Moving between panes and windows with vim movement.
57 bind -r C-h select-window -t :-
58 bind -r C-l select-window -t :+
59 bind -r C-j select-pane -t :.+
60 bind -r C-k select-pane -t :.-
61
62 # Moving between panes with vim movement.
63 # This is kind of redundant with the above but maybe it's still useful.
64 bind h select-pane -L
65 bind j select-pane -D
66 bind k select-pane -U
67 bind l select-pane -R
68
69 # Resizing panes with the vim movement keys.
70 bind -r H resize-pane -L 2
71 bind -r J resize-pane -D 2
72 bind -r K resize-pane -U 2
73 bind -r L resize-pane -R 2