]> Sergey Matveev's repositories - dotfiles.git/blob - tmux/.tmux.conf
Fast changing between file extensions
[dotfiles.git] / tmux / .tmux.conf
1 set-option -g mode-keys vi
2 set-option -g base-index 1
3 set-option -g default-terminal "screen-256color"
4 set-option -g escape-time 1
5 set-option -g repeat-time 0
6 set-option -g history-limit 20000
7 set-option -g renumber-windows on
8
9 set-option -g prefix C-a
10 unbind-key C-b
11 bind-key C-a send-prefix
12
13 bind-key -n C-PgUp previous-window
14 bind-key -n C-PgDn next-window
15 bind-key -n S-PgUp copy-mode -u
16
17 bind '"' split-window -c "#{pane_current_path}"
18 bind % split-window -h -c "#{pane_current_path}"
19 bind c new-window -c "#{pane_current_path}"
20
21 set-option -g status-style "bg=black,fg=white"
22 set-option -g status-left "#S>"
23 set-option -g status-right "#T"
24 set-option -g status-justify centre
25
26 set-window-option -g automatic-rename on
27 set-window-option -g window-status-format "#I:#W:#T#F"
28 set-window-option -g window-status-bg green
29 set-window-option -g window-status-fg black
30 set-window-option -g window-status-current-format "#I:#W#F"
31 set-window-option -g window-status-current-bg red
32 set-window-option -g window-status-last-bg cyan
33
34 bind-key u capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'urlview /tmp/tmux-buffer' \; delete-buffer
35 bind-key y capture-pane -J \; save-buffer /tmp/tmux-buffer \; split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' \; delete-buffer
36 bind-key Y capture-pane -J -S - -E - \; save-buffer /tmp/tmux-buffer \; split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer' \; delete-buffer
37 bind-key b set-option status
38 unbind-key L