From dbd80e8b5fbd0947c2064f8094a266ba83587dec Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sat, 29 Apr 2017 09:41:16 -0600 Subject: Couple of minor updates --- mac.tmux.config | 2 +- tmux.config | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mac.tmux.config b/mac.tmux.config index 38f7d0f..6ef1557 100755 --- a/mac.tmux.config +++ b/mac.tmux.config @@ -1,7 +1,7 @@ # vim: syntax=conf # Setup 'v' to begin selection as in Vim -bind -T copy-mode-vi y copy-pipe "reattach-to-user-namespace pbcopy" +bind -T copy-mode-vi y send -X copy-pipe-and-cancel "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" diff --git a/tmux.config b/tmux.config index 790b781..1cfc59c 100644 --- a/tmux.config +++ b/tmux.config @@ -2,6 +2,12 @@ # Bindings ##################################### + +# Splits always start in the current pane's working directory +unbind '"' +unbind % +bind '"' split-window -v -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" # Vim movements bind C-h select-pane -L bind C-j select-pane -D @@ -31,6 +37,8 @@ bind C-v resize-pane -Z # Settings ##################################### +# Setup 'v' to begin selection as in Vim +bind -Tcopy-mode-vi v send -X begin-selection # Help with the color problems set -g default-terminal "screen-256color" # Mouse Scrolling -- cgit v1.2.3