feat(tmux): better vim visual, yank and paste bindings

This commit is contained in:
Sergio Laín 2024-09-06 14:02:40 +02:00
parent 99e0d25fa5
commit 3873c74de8
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -10,6 +10,12 @@ bind C-r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf relo
setw -g mode-keys vi
set -g status-keys vi
bind 'v' copy-mode
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy"
bind p paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy"
# Split windows
bind | split-window -hc "#{pane_current_path}"
bind-key "\\" split-window -fh -c "#{pane_current_path}"