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'