My vim configuration
git clone
Log | Files | Refs | README

commit 4d00ffb02a3c0f05fd1afa66c3d4f0a57aeea826
parent e0077204c6f1c321095ef806031b69d377b04187
Author: mcol <>
Date:   Sun,  9 Dec 2018 11:10:35 +0000

moved tmux conf to vim-misc

Atmux.conf | 48++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+), 0 deletions(-)

diff --git a/tmux.conf b/tmux.conf @@ -0,0 +1,48 @@ +# symlink this to ~/.tmux.conf + +# make C-a prefix +unbind C-b +set -g prefix C-a +bind C-a send-prefix + +# bindings +bind r source-file ~/.tmux.conf +bind-key C-a last-window +bind-key | split-window -h +bind-key - split-window -v +bind C-l send-keys 'C-l' + +# general settings +set -g default-terminal "tmux-256color" +set -g mouse on +set -g history-limit 5000 +set -s escape-time 0 +set -g base-index 1 + +# Vim bindings in copy-mode +bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null" +bind-key p run "xclip -o -sel clip | tmux load-buffer - ; tmux paste-buffer" +bind-key -T copy-mode-vi 'v' send -X begin-selection +bind-key -T copy-mode-vi 'y' send -X copy-selection + +# status bar +#setw -g window-status-current-attr bold +#setw -g window-status-current-format ' #I#[fg=colour7]:#[fg=colour8]#W#[fg=colour7]#F ' +#set -g status-right '#[fg=colour8,bg=colour4,bold] %H:%M ' +#setw -g window-status-format ' #I#[fg=colour7]:#[fg=colour8]#W#[fg=colour7]#F ' +set -g status off + +# Smart pane switching with awareness of Vim splits. +# See: +is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ + | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" +bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" +bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" +bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" +bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" +bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" +bind-key -T copy-mode-vi C-h select-pane -L +bind-key -T copy-mode-vi C-j select-pane -D +bind-key -T copy-mode-vi C-k select-pane -U +bind-key -T copy-mode-vi C-l select-pane -R +bind-key -T copy-mode-vi C-\ select-pane -l