diff options
author | Victor Toso <victortoso@redhat.com> | 2015-08-11 15:58:01 +0200 |
---|---|---|
committer | Victor Toso <victortoso@redhat.com> | 2015-08-11 15:58:01 +0200 |
commit | 1b3c157ecd5fe4574270eb227959e187fd6f0eae (patch) | |
tree | 02320cd4d91e5ec4dc81cbd1ac0f5eb6ac90eb22 | |
parent | 1374962ca2325fd63f5ef494aa400933a2ef478b (diff) |
tmux: vi-copy!
bind-key + 'v' -> tmux copy-mode
(in copy-mode) 'v' -> start selecting to copy
(in copy-mode) 'y' -> copy selected chars/lines
bindk-key + 'p' -> tmux paste-buffer to the window.
-rw-r--r-- | tmux.conf | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -5,8 +5,14 @@ set -g default-terminal "screen-256color" set -g history-limit 10000 setw -g utf8 on + setw -g mode-keys vi +bind v copy-mode # Enter in copy-mode with V like 'Visual' +bind p paste-buffer # Paste tmux buffer to window +bind-key -t vi-copy 'v' begin-selection # Select in copy-mode +bind-key -t vi-copy 'y' copy-selection # Copy in copy-mode + set-option -g status-utf8 on set-option -g status-justify left set-option -g status-bg black @@ -42,3 +48,4 @@ bind-key -n M-S-Up resize-pane -U 2 bind-key -n M-S-Down resize-pane -D 2 bind-key -n M-S-Right resize-pane -R 2 bind-key -n M-S-Left resize-pane -L 2 + |