Disable mouse yanking
This commit is contained in:
@@ -37,9 +37,6 @@ bind r source-file ~/.tmux.conf\; display "Conf reloaded!"
|
|||||||
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# Vi copypaste mode
|
|
||||||
set-window-option -g mode-keys vi
|
|
||||||
set -g @yank_action 'copy-pipe'
|
|
||||||
#bind-key -Tcopy-mode-vi 'v' send -X begin-selection
|
#bind-key -Tcopy-mode-vi 'v' send -X begin-selection
|
||||||
#bind-key -Tcopy-mode-vi 'y' send -X copy-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"
|
#bind -Tcopy-mode-vi y send -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c" \; display-message "copied to system clipboard"
|
||||||
@@ -60,7 +57,11 @@ bind-key C-o send-keys C-o
|
|||||||
# move x clipboard into tmux paste buffer
|
# move x clipboard into tmux paste buffer
|
||||||
#bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
|
#bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
|
||||||
# move tmux copy buffer into x clipboard
|
# move tmux copy buffer into x clipboard
|
||||||
|
# Vi copypaste mode
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
set-option -s set-clipboard on
|
set-option -s set-clipboard on
|
||||||
|
set -g @yank_with_mouse off
|
||||||
|
set -g @yank_action 'copy-pipe'
|
||||||
|
|
||||||
if '[ `uname` == Darwin ]' \
|
if '[ `uname` == Darwin ]' \
|
||||||
'source-file ~/.tmux/.mac_config'
|
'source-file ~/.tmux/.mac_config'
|
||||||
|
|||||||
Reference in New Issue
Block a user