From 7dd853749eff174bf9acb3785095e55ce545aaec Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Thu, 1 Feb 2024 16:10:44 -0600 Subject: feat: add vim-like keybinds --- .config/tmux/tmux.conf | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to '.config') 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" -- cgit v1.2.3-54-g00ecf