Skip to content

Instantly share code, notes, and snippets.

@gruis
Created November 15, 2012 11:03
Show Gist options
  • Save gruis/4078003 to your computer and use it in GitHub Desktop.
Save gruis/4078003 to your computer and use it in GitHub Desktop.
.files
unbind C-b
set -g prefix C-a
setw -g utf8 on
set-option -g utf8 on
set-option -g status-utf8 on
set -g default-terminal "screen-256color"
set-option -g visual-activity on
# Use mouse
setw -g mode-mouse on
set -g mouse-select-window on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-utf on
# Set that stupid Esc-Wait off, so VI works again
set -sg escape-time 0
# Provide copy paste
set-option -g default-command "reattach-to-user-namespace -l zsh"
# resize panes
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
# easily toggle synchronization (mnemonic: e is for echo)
bind e setw synchronize-panes on
bind E setw synchronize-panes off
# Reload the config.
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Clear the pane
bind K send-keys -R
set -g history-limit 100000
# act like vim
setw -g mode-keys vi
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind s split-window -h
bind i split-window
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
unbind +
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
unbind -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment