Created
September 15, 2015 17:33
-
-
Save arne-cl/5b236ba0cbd4479e082a to your computer and use it in GitHub Desktop.
tmux config file with better key bindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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