Skip to content

Instantly share code, notes, and snippets.

@chrpinedo
Last active March 22, 2017 13:36
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 chrpinedo/3fdb9cb9ffaa8f85d8bbeca50d0e3a19 to your computer and use it in GitHub Desktop.
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 is a personal tmux configuration file to be compatible with my vim
# configuration located at https://github.com/chrpinedo/vimdot
#
# Christian Pinedo <chr.pinedo@gmail.com>
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