summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2024-02-01 16:10:44 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2024-02-01 16:10:44 -0600
commit7dd853749eff174bf9acb3785095e55ce545aaec (patch)
tree9bf029a6783e0165a08094db7fd0eeaec1ce1f41 /.config
parent3d2cf213ec186f707d60049122281e688b8160ee (diff)
feat: add vim-like keybinds
Diffstat (limited to '.config')
-rw-r--r--.config/tmux/tmux.conf20
1 files changed, 19 insertions, 1 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 6648bb3..9561802 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -9,6 +9,23 @@ set -sg escape-time 50
set -g default-terminal "screen-256color"
set -as terminal-features ",xterm-256color:RGB"
+### some configs
+### from https://jdhao.github.io/2018/09/30/tmux_settings_for_vim_users/
+
+# reload config
+bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display-message "reloaded tmux config"
+
+# vim-like splits
+bind s split-window -v
+bind v split-window -h
+
+# vim-like pane switching
+bind ^ last-window
+bind k select-pane -U
+bind j select-pane -D
+bind h select-pane -L
+bind l select-pane -R
+
### tpm config from here onwards
# general
@@ -24,7 +41,8 @@ set -g @plugin 'erikw/tmux-powerline'
### others
# https://github.com/jrmoulton/tmux-sessionizer
-bind C-o display-popup -E "tms"
+bind f display-popup -E "tms"
+bind C-q run-shell "tms kill"
bind C-j display-popup -E "tms switch"
bind C-w display-popup -E "tms windows"