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