-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
37 lines (28 loc) · 958 Bytes
/
.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
# sets both commonly-used prefixes
set -g prefix C-b
# try to stay compatible with curses apps that are used to screen
set -g default-terminal "screen-256color"
# sets longer scrollback so we don't lose history
set -g history-limit 100000
# vi-mode!
setw -g mode-keys vi
# just in case something like byobu is trying to make tmux act like screen
unbind [
# copy-pasta in a vi-like way
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# navigate in a vi-like way
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
# Set that silly Esc-Wait off, so VI works again properly
set-option -sg escape-time 0
# Allow for 2-window toggling a la screen
bind-key - last-window
bind c new-window -c '#{pane_current_path}'
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -c "#{pane_current_path}"