Skip to content

Instantly share code, notes, and snippets.

@webee
Created January 17, 2017 12:50
Show Gist options
  • Save webee/120fb0715c552cb4d7fc4f8cc17f43e6 to your computer and use it in GitHub Desktop.
Save webee/120fb0715c552cb4d7fc4f8cc17f43e6 to your computer and use it in GitHub Desktop.
my tmux config.
set -g prefix ^a
unbind ^b
bind a send-prefix
set -g mode-keys vi
set -g status-utf8 on
setw -g utf8 on
# window select.
bind-key -n F1 previous-window
bind-key -n F2 next-window
bind-key F1 send-key "F1"
bind-key F2 send-key "F2"
bind-key z kill-session
# window split to panels.
unbind '"'
bind - splitw -v
unbind %
bind | splitw -h
# panel select.
bind k selectp -U
bind j selectp -D
bind h selectp -L
bind l selectp -R
# panel resize.
bind ^k resizep -U 10
bind ^j resizep -D 10
bind ^h resizep -L 10
bind ^l resizep -R 10
# copy and paste like vim.
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
unbind p
bind p paste-buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment