Turned on vi-mode for tmux

This commit is contained in:
Dreaded_X 2024-04-18 03:42:37 +02:00
parent 2060c74012
commit 6a7bc6e6c2
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4

View File

@ -8,6 +8,12 @@ set -s escape-time 0
set-window-option -g xterm-keys on set-window-option -g xterm-keys on
set-option -g focus-events on set-option -g focus-events on
# Setup vi-mode with better keybindings
# TODO: Escape does not work properly for leaving
setw -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel
# Change leader # Change leader
unbind C-b unbind C-b
set -g prefix C-a set -g prefix C-a