From 395a7693d76373657849b66fa291b69a179d1401 Mon Sep 17 00:00:00 2001 From: "joe.sharp" Date: Thu, 2 Nov 2023 17:27:01 +0000 Subject: [PATCH] few adjustments to get the leader key and window splitting consistent --- tmux.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tmux.conf b/tmux.conf index aa03083e..3e997e13 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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 set -g mode-keys vi @@ -22,5 +40,6 @@ set -g @dracula-show-flags true set -g @dracula-show-left-icon session set -g status-position top + # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'