Skip to content

Instantly share code, notes, and snippets.

@arne-cl
Created September 15, 2015 17:33
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 arne-cl/5b236ba0cbd4479e082a to your computer and use it in GitHub Desktop.
Save arne-cl/5b236ba0cbd4479e082a to your computer and use it in GitHub Desktop.
tmux config file with better key bindings
# use Ctrl-a instead of Ctrl-b as the default key
unbind-key C-b
set -g prefix C-a
# use | to split windows horizontally
# use - to split windows vertically
unbind %
bind | split-window -h
bind - split-window -v
# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# use vi keybindings
set-window-option -g mode-keys vi
# use vim-style copy and paste
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment