Skip to content

Commit 395a769

Browse files
committed
few adjustments to get the leader key and window splitting consistent
1 parent 6436d43 commit 395a769

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tmux.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# Give ourselves a quick way to reload tmux config
2+
unbind r
3+
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded ~/.config/tmux/tmux.conf"
4+
5+
# Rebind window splitting - match VIM
6+
unbind v
7+
unbind s
8+
9+
unbind % # split horizontal
10+
unbind '"' # split vertical
11+
12+
bind v split-window -h -c "#{pane_current_path}"
13+
bind s split-window -v -c "#{pane_current_path}"
14+
15+
# Set a leader more like the VIM one
16+
unbind C-b
17+
set -g prefix C-Space
18+
119
# Act like vim
220
set -g mode-keys vi
321

@@ -22,5 +40,6 @@ set -g @dracula-show-flags true
2240
set -g @dracula-show-left-icon session
2341
set -g status-position top
2442

43+
2544
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
2645
run '~/.tmux/plugins/tpm/tpm'

0 commit comments

Comments
 (0)