From b0aae0258336cdc931b34bae1836eace72a00a91 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 27 Apr 2017 21:43:10 -0600 Subject: Updating tmux vim copy paste --- linux.tmux.config | 2 +- mac.tmux.config | 1 - tmux.config | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) mode change 100644 => 100755 linux.tmux.config mode change 100644 => 100755 mac.tmux.config diff --git a/linux.tmux.config b/linux.tmux.config old mode 100644 new mode 100755 index b5a43f3..091b4f0 --- a/linux.tmux.config +++ b/linux.tmux.config @@ -1,3 +1,3 @@ # vim: syntax=conf -bind -T copy-mode-vi y copy-pipe "tmux save-buffer - | xp" +bind -Tcopy-mode-vi y send -X copy-pipe-and-cancel "tmux save-buffer - | xp" diff --git a/mac.tmux.config b/mac.tmux.config old mode 100644 new mode 100755 index f086af2..38f7d0f --- a/mac.tmux.config +++ b/mac.tmux.config @@ -1,7 +1,6 @@ # vim: syntax=conf # Setup 'v' to begin selection as in Vim -bind -T copy-mode-vi v begin-selection bind -T copy-mode-vi y copy-pipe "reattach-to-user-namespace pbcopy" # Update default binding of `Enter` to also use copy-pipe unbind -T copy-mode-vi Enter diff --git a/tmux.config b/tmux.config index 9f41a64..790b781 100644 --- a/tmux.config +++ b/tmux.config @@ -31,8 +31,6 @@ bind C-v resize-pane -Z # Settings ##################################### -# Setup 'v' to begin selection as in Vim -bind -T copy-mode-vi v begin-selection # Help with the color problems set -g default-terminal "screen-256color" # Mouse Scrolling -- cgit v1.2.3