Add .tmux.conf

This commit is contained in:
The Magician 2023-12-10 16:27:01 +00:00
parent 166ac4ce48
commit 9c1ed36e6e
1 changed files with 29 additions and 0 deletions

29
tmux/.tmux.conf Normal file
View File

@ -0,0 +1,29 @@
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# vimlike bindings
# pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# pane resizing
bind -r C-k resize-pane -U
bind -r C-j resize-pane -D
bind -r C-h resize-pane -L
bind -r C-l resize-pane -R
# unbind keys
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right