-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
63 lines (49 loc) · 1.7 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Recommended setting from neovim healthchecker
set-option -sg escape-time 10
# Create new window
bind c new-window -c '#{pane_current_path}'
# Create new pane
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# Navigate panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r H resize-pane -L 5
bind-key -r L resize-pane -R 5
# Move windows
# bind-key -n C-S-Left swap-window -t 0
# bind-key -n C-S-Right swap-window -t +1
# bind-key -r < swap-window -t -1
# bind-key -r > swap-window -t +1
bind-key -r C-S-j swap-window -t -1
bind-key -r C-S-k swap-window -t +1
bind r source-file ~/.tmux.conf
# Enabling system clipboard sharing for vim.
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard.
set-option -g default-command 'reattach-to-user-namespace -l $SHELL'
# Use vim keybindings in copy mode
setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
# to enable vim buffer reload on file update
set -g focus-events on
#############################
########## Plugins ##########
#############################
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-strategy-nvim 'session'
set -g @continuum-save-interval '1'
set -g @continuum-restore 'on'
set -g status-right 'Continuum status: #{continuum_status}'
run '~/.tmux/plugins/tpm/tpm'