-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
40 lines (34 loc) · 1.56 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
#set -g default-terminal "screen-256color"
set -g status-bg black
set -g status-fg cyan
#set -g message-bg black
#set -g message-fg cyan
#set -g pane-border-fg black
#set -g pane-active-border-fg cyan
set -g prefix C-a
# display currently playing cmus song in bottom righ
#set -g status-interval 1
#set -g status-right '#(cmus-remote -Q | grep file | cut -d/ -f5)'
set -g history-limit 10000
setw -g mode-keys vi
bind-key r source-file ~/.tmux.conf
bind-key | split-window -h
bind-key _ split-window
bind-key k confirm-before -p "kill-window #W? (y/n)" kill-window
bind-key @ command-prompt -p "join-pane -s :" "join-pane -s ':%%'"
#uniform switch between tmux and vim splits (see .vimrc)
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
#bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
#vim-like copy/paste in copy-mode
unbind [
unbind p
bind Escape copy-mode
bind p paste-buffer
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'y' copy-selection
bind N previous-window
bind Y setw synchronize-panes
bind a send-prefix