]> git.rmz.io Git - dotfiles.git/blob - tmux.conf
Other changes at cadscan (with the ones I want to keep stripped)
[dotfiles.git] / tmux.conf
1 set -g default-terminal "screen-256color"
2 set -g utf8 on
3 set -g set-titles on
4 set -g mouse-utf8 on
5
6 set -g mode-keys vi
7
8 bind Escape copy-mode
9 unbind p
10 bind p paste-buffer
11 bind -t vi-copy 'v' begin-selection
12 bind -t vi-copy 'y' copy-selection
13 bind -t vi-copy 'Space' halfpage-down
14 bind -t vi-copy 'Bspace' halfpage-up
15
16 # extra commands for interacting with the ICCCM clipboard
17 bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
18 bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
19
20 # easy-to-remember split pane commands
21 bind | split-window -h
22 bind - split-window -v
23 unbind '"'
24 unbind %
25
26 # moving between panes with vim movement keys
27 bind h select-pane -L
28 bind j select-pane -D
29 bind k select-pane -U
30 bind l select-pane -R
31
32 # moving between windows with vim movement keys
33 bind -r C-h select-window -t :-
34 bind -r C-l select-window -t :+
35
36 # resize panes with vim movement keys
37 bind -r H resize-pane -L 5
38 bind -r J resize-pane -D 5
39 bind -r K resize-pane -U 5
40 bind -r L resize-pane -R 5