From f55b955d5c599914a08bda47841b1fbb7b14ca1a Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.uk> Date: Thu, 16 Jan 2020 01:07:45 +0000 Subject: [PATCH] Update vi-copy commands --- tag-tmux/tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tag-tmux/tmux.conf b/tag-tmux/tmux.conf index a980d24..3a5c3d0 100644 --- a/tag-tmux/tmux.conf +++ b/tag-tmux/tmux.conf @@ -39,9 +39,9 @@ bind-key b break-pane -d setw -g mode-keys vi # Setup 'v' to begin selection as in Vim -bind-key -T copy-mode-vi v begin-selection -bind-key -T copy-mode-vi y copy-pipe "reattach-to-user-namespace pbcopy" +bind-key -T copy-mode-vi 'v' send -X begin-selection +bind-key -T copy-mode-vi 'y' send -X copy-pipe "reattach-to-user-namespace pbcopy" # Update default binding of `Enter` to also use copy-pipe unbind -T copy-mode-vi Enter -bind-key -T copy-mode-vi Enter copy-pipe "reattach-to-user-namespace pbcopy" +bind-key -T copy-mode-vi 'Enter' send -X copy-pipe "reattach-to-user-namespace pbcopy"