From 037be189ec10d81dbbfa893b7965132b2d6cc886 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Tue, 3 Jan 2017 10:38:52 -0700 Subject: Changing linux tmux bindings to use vim copy/yank --- check_os.sh | 2 ++ linux.tmux.config | 3 +++ tmux.config | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 linux.tmux.config diff --git a/check_os.sh b/check_os.sh index 5f4b694..efee8b0 100755 --- a/check_os.sh +++ b/check_os.sh @@ -2,4 +2,6 @@ if [ "$(uname)" == "Darwin" ]; then tmux source-file "$HOME/.tmux/mac.tmux.config" +elif [ "$(uname)" == "Linux" ]; then + tmux source-file "$HOME/.tmux/linux.tmux.config" fi diff --git a/linux.tmux.config b/linux.tmux.config new file mode 100644 index 0000000..ff271a2 --- /dev/null +++ b/linux.tmux.config @@ -0,0 +1,3 @@ +# vim: syntax=conf + +bind-key -t vi-copy 'y' copy-selection diff --git a/tmux.config b/tmux.config index 5c9f87f..b3637f6 100644 --- a/tmux.config +++ b/tmux.config @@ -26,6 +26,8 @@ bind a set-window-option synchronize-panes # Settings ##################################### +# Setup 'v' to begin selection as in Vim +bind -t vi-copy v begin-selection # Help with the color problems set -g default-terminal "screen-256color" # Mouse Scrolling -- cgit v1.2.3