diff options
author | David Runge <david.runge@frqrec.com> | 2014-06-17 16:04:55 +0200 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-06-17 16:04:55 +0200 |
commit | 3b44361df3ede6208faa6fc97d584d33889dedf5 (patch) | |
tree | 9f5bf3b09c4eede604fea4d2abe8f4bf3ae0f7d5 | |
parent | c72761520d904c3bc4ecd39f8f839223513d8e30 (diff) | |
download | dotfiles-3b44361df3ede6208faa6fc97d584d33889dedf5.tar.gz dotfiles-3b44361df3ede6208faa6fc97d584d33889dedf5.tar.bz2 dotfiles-3b44361df3ede6208faa6fc97d584d33889dedf5.tar.xz dotfiles-3b44361df3ede6208faa6fc97d584d33889dedf5.zip |
Adding bindings for vi-copy mode in tmux
-rw-r--r-- | .tmux.conf | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -62,7 +62,6 @@ setw -g mode-mouse on - # Keep your finger on ctrl, or don't bind-key ^D detach-client @@ -73,6 +72,14 @@ set -g status-keys vi # Use vi keybindings in copy and choice modes setw -g mode-keys vi +# v and y like vi in copy-mode +bind-key -t vi-copy 'v' begin-selection +bind-key -t vi-copy 'y' copy-selection +# clipboard settings +set -s set-clipboard on +bind-key C-p run "xclip -o | tmux load-buffer - ; tmux paste-buffer" +bind-key C-y run "tmux save-buffer - | xclip -i" + # set first window to index 1 (not 0) to map more to the keyboard layout... set -g base-index 1 |