few adjustments to get the leader key and window splitting consistent

This commit is contained in:
joe.sharp 2023-11-02 17:27:01 +00:00
parent 6436d43d70
commit 395a7693d7
1 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,21 @@
# Give ourselves a quick way to reload tmux config
unbind r
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded ~/.config/tmux/tmux.conf"
# Rebind window splitting - match VIM
unbind v
unbind s
unbind % # split horizontal
unbind '"' # split vertical
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
# Set a leader more like the VIM one
unbind C-b
set -g prefix C-Space
# Act like vim # Act like vim
set -g mode-keys vi set -g mode-keys vi
@ -22,5 +40,6 @@ set -g @dracula-show-flags true
set -g @dracula-show-left-icon session set -g @dracula-show-left-icon session
set -g status-position top set -g status-position top
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm' run '~/.tmux/plugins/tpm/tpm'