vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
1.ref
(591B)
1 #Set the global prefix key to C-q (default is C-b)
2 set-option -g prefix C-q
3 bind-key C-q last-window
4
5
6 # Remove default binding since we’re replacing
7 unbind %
8 bind | split-window -h
9 bind - split-window -v
10
11
12 # Set status bar
13 set -g status-bg black
14 set -g status-fg white
15 set -g status-left '#[fg=green]#H'
16
17
18 # Highlight active window
19 set-window-option -g window-status-current-bg red
20 set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
21
22
23 # Set window notifications
24 setw -g monitor-activity on
25 set -g visual-activity on
26
27
28 # Automatically set window title
29 setw -g automatic-rename