Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (44 sloc) 1.469 kB
# index windows starting from 0
set -g base-index 0
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
bind v split-window -h
# resize panes like vim
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1
# browse panes like vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# bind control-pageup and control-pagedown to browse between windows
bind -n C-NPage next-window
bind -n C-PPage previous-window
# reloading the configuration file
bind r source-file ~/.tmux.conf
# go to last window
bind C-a last-window
# send a command to a nested tmux
bind b send-prefix
# open a man page in new pane or window (taken
# from https://github.com/dlbewley/tmux-scripts/)
bind m command-prompt -p "man page:" "split-window -h 'exec man %%'"
bind M command-prompt -p "Man page:" "new-window -n 'man %1' 'exec man %1'"
# resize windows only when a smaller client is using them
setw -g aggressive-resize on
# workaround to use s-pgup and s-pgdown to scroll windows
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g mouse-select-pane off
set -g status-keys vi
set -g set-titles on
setw -g mode-keys vi
set -g status-utf8 on
set -g set-remain-on-exit on
# statusline color
set -g status-bg colour237
set -g status-fg colour252
setw -g window-status-current-bg colour232
Jump to Line
Something went wrong with that request. Please try again.