-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
57 lines (44 loc) · 1.33 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
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
set -g mouse on
set -g default-terminal "screen-256color"
# set start index to 1
set -g base-index 1
setw -g pane-base-index 1
# bind v to copy-mode
bind v copy-mode
# set status bar to top
set -g status-position top
# bind renaming window to r
bind r command-prompt -p "rename window" "rename-window '%%'"
#----------------VIM KEYS IN HIGHLIGHT MODE-----
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi V send -X select-line
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind -T copy-mode-vi WheelUpPane send -N1 -X scroll-up
bind -T copy-mode-vi WheelDownPane send -N1 -X scroll-down
# statusbar
#set -g status off
# split panes using j and l
bind - split-window -h
bind + split-window -v
unbind '"'
unbind %
# vim-like pane resizing
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
set-option -sg escape-time 10
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark' # or 'light'
run '~/.tmux/plugins/tpm/tpm'