Skip to content

Instantly share code, notes, and snippets.

@maehler
Created January 11, 2015 12:54
Show Gist options
  • Save maehler/332eccf4fbb0c4db847a to your computer and use it in GitHub Desktop.
Save maehler/332eccf4fbb0c4db847a to your computer and use it in GitHub Desktop.
.tmux.conf
# reload settings
bind-key R source-file ~/.tmux.conf
# Ctrl-Left/Right cycles thru windows (no prefix)
bind-key -n "C-Left" select-window -t :-
bind-key -n "C-Right" select-window -t :+
# Quick pane cycling
bind-key ^B select-pane -t :.+
# tell tmux to use 256 colour terminal
set -g default-terminal "screen-256color"
# vim copy mode
# in normal tmux mode
bind p paste-buffer # `prefix + p` pastes the latest buffer
# in copy mode
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind -t vi-copy V rectangle-toggle
bind -t vi-copy Y copy-end-of-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment