diff options
author | Cody Hiar <codyfh@gmail.com> | 2017-01-03 10:38:52 -0700 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2017-01-03 10:38:52 -0700 |
commit | 037be189ec10d81dbbfa893b7965132b2d6cc886 (patch) | |
tree | dd49f1f38d84b1faf796d4f7b7381c14f649be40 | |
parent | 5228c180067b3d2b8af970904e8928799cbdd156 (diff) |
Changing linux tmux bindings to use vim copy/yank
-rwxr-xr-x | check_os.sh | 2 | ||||
-rw-r--r-- | linux.tmux.config | 3 | ||||
-rw-r--r-- | tmux.config | 2 |
3 files changed, 7 insertions, 0 deletions
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 |