]> git.rmz.io Git - dotfiles.git/commitdiff
tmux: Use new syntax for bind in copy-mode-vi
authorSamir Benmendil <me@rmz.io>
Mon, 2 Apr 2018 10:23:46 +0000 (10:23 +0000)
committerSamir Benmendil <me@rmz.io>
Mon, 2 Apr 2018 10:23:46 +0000 (10:23 +0000)
tmux.conf

index cc1ad4417cc3003e067f0483f8d5419848d1c5ab..6175dc521677433181a818ab3ec70dfc25eb60f1 100644 (file)
--- a/tmux.conf
+++ b/tmux.conf
@@ -6,10 +6,10 @@ set -g mode-keys vi
 bind Escape copy-mode
 unbind p
 bind p paste-buffer
-bind -t vi-copy 'v' begin-selection
-bind -t vi-copy 'y' copy-selection
-bind -t vi-copy 'Space' halfpage-down
-bind -t vi-copy 'Bspace' halfpage-up
+bind -T copy-mode-vi 'v'      send-keys -X begin-selection
+bind -T copy-mode-vi 'y'      send-keys -X copy-selection
+bind -T copy-mode-vi 'Space'  send-keys -X halfpage-down
+bind -T copy-mode-vi 'Bspace' send-keys -X halfpage-up
 
 # extra commands for interacting with the ICCCM clipboard
 bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"