✨ feat(tmux): better vim visual, yank and paste bindings
This commit is contained in:
parent
99e0d25fa5
commit
3873c74de8
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ bind C-r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf relo
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
set -g status-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
|
# Split windows
|
||||||
bind | split-window -hc "#{pane_current_path}"
|
bind | split-window -hc "#{pane_current_path}"
|
||||||
bind-key "\\" split-window -fh -c "#{pane_current_path}"
|
bind-key "\\" split-window -fh -c "#{pane_current_path}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue