15 lines
513 B
Plaintext
15 lines
513 B
Plaintext
## Use vim keybindings in copy mode
|
|
set-option -g mouse off
|
|
|
|
bind-key v copy-mode
|
|
set-option -g default-shell /bin/bash
|
|
|
|
setw -g mode-keys vi
|
|
set-option -s set-clipboard off
|
|
bind P paste-buffer
|
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
bind-key -T copy-mode-vi y send-keys -X rectangle-toggle
|
|
unbind -T copy-mode-vi Enter
|
|
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
|
|
#bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
|