Skip to content

Instantly share code, notes, and snippets.

@averagehuman
Created July 16, 2014 20:14
Show Gist options
  • Save averagehuman/8b3ab35c7bb368a2be16 to your computer and use it in GitHub Desktop.
Save averagehuman/8b3ab35c7bb368a2be16 to your computer and use it in GitHub Desktop.
set-option -g status-keys vi
set-window-option -g mode-keys vi
set-window-option -g set-titles on
set -g set-titles-string "#T"
set-window-option -g mode-mouse on
setw -g terminal-overrides 'xterm*:smcup@:rmcup@'
# reload config
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
# Screen compatible
bind k kill-window
# Terminal compatible
bind -n ^T new-window
bind -n ^W kill-window
bind -n ^Q kill-session
# vi-like visual select in copy mode
bind -t vi-copy v begin-selection
bind -t vi-copy M-v rectangle-toggle
# y to yank, and it goes in primary and clipboard buffers
bind -t vi-copy y copy-selection
bind -n C-V paste-buffer
bind -n ^h previous-window
bind -n ^l next-window
unbind -n C-Left
unbind -n C-Right
bind -n C-Left previous-window
bind -n C-Right next-window
# lock server
set-option -g lock-command vlock
unbind x
bind x lock-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment