vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

1.in

(581B)


      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 # Remove default binding since we’re replacing
      5 unbind %
      6 bind | split-window -h
      7 bind - split-window -v
      8 # Set status bar
      9 set -g status-bg black
     10 set -g status-fg white
     11 set -g status-left '#[fg=green]#H'
     12 # Highlight active window
     13 set-window-option -g window-status-current-bg red
     14 set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
     15 # Set window notifications
     16 setw -g monitor-activity on
     17 set -g visual-activity on
     18 # Automatically set window title
     19 setw -g automatic-rename