From 9c1ed36e6e81add8b742a9a1b6e5481b4c6777b6 Mon Sep 17 00:00:00 2001 From: The Magician Date: Sun, 10 Dec 2023 16:27:01 +0000 Subject: [PATCH] Add .tmux.conf --- tmux/.tmux.conf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tmux/.tmux.conf diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..11e0aa9 --- /dev/null +++ b/tmux/.tmux.conf @@ -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