Mercurial > dotfiles.old
comparison tmux.conf @ 181:1ec3c51c9047
Add vim-like tmux copying
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 05 Nov 2014 21:55:16 +0100 |
parents | ca5ddc6081dc |
children | 925861e874ec |
comparison
equal
deleted
inserted
replaced
180:a8ee307de660 | 181:1ec3c51c9047 |
---|---|
21 #act like GNU screen | 21 #act like GNU screen |
22 unbind C-b | 22 unbind C-b |
23 set -g prefix C-a | 23 set -g prefix C-a |
24 | 24 |
25 bind Escape copy-mode | 25 bind Escape copy-mode |
26 | 26 # Setup 'v' to begin selection as in Vim |
27 bind-key -t vi-copy v begin-selection | |
28 bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
27 # resize panes like vim | 29 # resize panes like vim |
28 # feel free to change the "1" to however many lines you want to resize by, only | 30 # feel free to change the "1" to however many lines you want to resize by, only |
29 # one at a time can be slow | 31 # one at a time can be slow |
30 bind < resize-pane -L 1 | 32 bind < resize-pane -L 1 |
31 bind > resize-pane -R 1 | 33 bind > resize-pane -R 1 |