Merge commit '8bce4d5bfdb89f07067a0a183c1b79b808c47f80'
This commit is contained in:
@@ -38,9 +38,9 @@ set -g mouse on
|
||||
|
||||
# Vi copypaste mode
|
||||
set-window-option -g mode-keys vi
|
||||
bind-key -t vi-copy 'v' begin-selection
|
||||
bind-key -t vi-copy 'y' copy-selection
|
||||
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
|
||||
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
|
||||
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
|
||||
bind -Tcopy-mode-vi y send -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c" \; display-message "copied to system clipboard"
|
||||
|
||||
# Smart pane switching with awareness of vim splits
|
||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||
@@ -55,6 +55,7 @@ bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
|
||||
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
|
||||
# move tmux copy buffer into x clipboard
|
||||
bind C-y run "tmux save-buffer - | xclip -i"
|
||||
set-option -s set-clipboard off
|
||||
|
||||
source-file ~/.tmux/.tmux_config_powerline
|
||||
|
||||
|
||||
Reference in New Issue
Block a user