Skip to content

Instantly share code, notes, and snippets.

@acrmp
Created May 29, 2014 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acrmp/1259b5a0cee09f8869d9 to your computer and use it in GitHub Desktop.
Save acrmp/1259b5a0cee09f8869d9 to your computer and use it in GitHub Desktop.
# Use vi keybindings in copy and choice modes
setw -g mode-keys vi
# Vim-style copy/paste
unbind [
bind ` copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy H start-of-line
bind -t vi-copy L end-of-line
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind -t vi-copy Escape cancel
# use ctrl-a for prefix
set -g prefix C-a
unbind C-b
# remove artificial delay
set -sg escape-time 1
# key binding for config reload
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# allow prefix to be sent through
bind C-a send-prefix
# return to last window (screen)
bind-key C-a last-window
# splitting panes
bind | split-window -h
bind - split-window -v
# movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# disable the mouse
setw -g mode-mouse off
set -g status-left ""
set -g status-left-length 40
set -g status-right ""
set -g status-justify centre
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment