summaryrefslogtreecommitdiffstats
path: root/.tmux.conf
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2024-12-02 15:44:20 +0100
committerAhmed Abdelhalim <[email protected]>2024-12-02 15:44:20 +0100
commit6aed0e934692fed5fd509f67eff6da8aaccf3ea9 (patch)
treedafab82638616a13bd4ba431ebaab887716e8847 /.tmux.conf
parent17dab2f8402374bb5717cc4e6c0d3d07ec73886c (diff)
Fix <C-k> conflicting with vim bindings and match resize to vim
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf11
1 files changed, 6 insertions, 5 deletions
diff --git a/.tmux.conf b/.tmux.conf
index b30da66..64fad8f 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -17,13 +17,14 @@ set-window-option -g alternate-screen on # allow running alternate screen (t
set-window-option -g mode-keys vi # Vi mode and copy paste
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel
-bind-key -n C-k clear-history
+# bind-key -n C-k clear-history # Conflicts with vim mappings
+bind-key -n C-l send-keys C-l \; send-keys -R \; clear-history
# Resizing panes
-bind-key -r H resize-pane -L 5
-bind-key -r J resize-pane -D 5
-bind-key -r K resize-pane -U 5
-bind-key -r L resize-pane -R 5
+bind-key -r H resize-pane -L 20
+bind-key -r J resize-pane -D 10
+bind-key -r K resize-pane -U 10
+bind-key -r L resize-pane -R 20
# Vim style pane navigation
bind h select-pane -L