Last active
March 22, 2017 13:36
-
-
Save chrpinedo/3fdb9cb9ffaa8f85d8bbeca50d0e3a19 to your computer and use it in GitHub Desktop.
My tmux configuration compatible with my vim configuration https://github.com/chrpinedo/vimdot
This file contains hidden or 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
# This is a personal tmux configuration file to be compatible with my vim | |
# configuration located at https://github.com/chrpinedo/vimdot | |
# | |
# Christian Pinedo <[email protected]> | |
set -g default-terminal "tmux" | |
if-shell "[[ $TERM = *256color ]]" "set -g default-terminal \"tmux-256color\"" | |
if-shell "[[ $TERM = xterm-256color ]] && [[ $COLORTERM = truecolor || $COLORTERM = 24bit ]]" "set -ga terminal-overrides \",xterm-256color:Tc\"" | |
set -ga terminal-overrides ",gnome-256color:Tc" | |
set -ga terminal-overrides ",xterm-termite:Tc" | |
set -g history-limit 10000 | |
set -s escape-time 0 | |
unbind C-b | |
set -g prefix C-Space | |
bind Space send-prefix | |
bind Space copy-mode | |
bind C-Space copy-mode | |
bind v split-window -h | |
bind s split-window -v | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind < resize-pane -L 5 | |
bind > resize-pane -R 5 | |
bind + resize-pane -U 5 | |
bind - resize-pane -D 5 | |
# X clipboard integration Vim style | |
bind-key -t vi-copy y copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b" | |
bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment