# Make shift+arrows, ctrl+arrows etc work in Vim. set -g xterm-keys on # See if this fixes slow ESC issues. # http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior set -s escape-time 0 # Start numbering at 1 set -g base-index 1 set -g pane-base-index 1 # Set status bar set -g status-position bottom set -g status-justify left set -g status-bg black set -g status-fg white set -g status-attr bold set -g status-left "#S " set -g status-right '#[fg=white,bg=black,bold] %d/%m #[fg=white,bg=black,bold] %H:%M @#H' # higlight the active window in the status bar set-window-option -g window-status-current-bg white set-window-option -g window-status-current-fg black setw -g window-status-current-fg red setw -g window-status-current-bg white setw -g window-status-current-attr bold setw -g window-status-current-format ' #I#[fg=red]:#[fg=black]#W#[fg=black]#F ' setw -g window-status-fg white setw -g window-status-bg black setw -g window-status-attr dim setw -g window-status-format ' #I#[fg=cyan]:#[fg=white]#W#[fg=white]#F ' # Don't prompt to kill panes/windows. bind-key x kill-pane bind-key & kill-window # Cycle panes. bind b select-pane -t :.+ bind C-b select-pane -t :.+ # More intuitive split-window mappings. bind "'" split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" # Maximize pane, e.g. for copying. bind-key z resize-pane -Z # Use vim keybindings in copy mode setw -g mode-keys vi set -g set-titles on set -g mouse on # C-b is not acceptable -- Vim uses it set-option -g prefix C-space bind-key C-space last-window # vim like navigation bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # The panes #set -g pane-border-bg colour235 #set -g pane-border-fg colour238 #set -g pane-active-border-bg colour236 #set -g pane-active-border-fg colour51 # panes #set -g pane-border-fg black #set -g pane-active-border-fg brightred # Activity monitoring setw -g monitor-activity on set -g visual-activity on # Example of using a shell command in the status line #set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" set -g default-terminal "xterm-kitty" set-option -ga terminal-overrides ",xterm-kitty:Tc" # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm'