Mercurial > dotfiles.old
changeset 181:1ec3c51c9047
Add vim-like tmux copying
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 05 Nov 2014 21:55:16 +0100 |
parents | a8ee307de660 |
children | 3dc6a4eec6ac |
files | tmux.conf |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tmux.conf Wed Nov 05 08:46:03 2014 +0100 +++ b/tmux.conf Wed Nov 05 21:55:16 2014 +0100 @@ -23,7 +23,9 @@ set -g prefix C-a bind Escape copy-mode - +# Setup 'v' to begin selection as in Vim +bind-key -t vi-copy v begin-selection +bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" # resize panes like vim # feel free to change the "1" to however many lines you want to resize by, only # one at a time can be slow