From a5ce0116a464facc55cd53c05f9299d247229ca7 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 23 Nov 2014 10:53:47 +0100 Subject: [PATCH] added more vi key bindings --- .tmux.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 1f3d471..f2c4633 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -108,6 +108,27 @@ bind Space last-window # move to last active window bind m run "cut -c3- ~/.tmux.conf | sh -s toggle_mouse" +# -- list choice --------------------------------------------------------------- + +bind -t vi-choice h tree-collapse +bind -t vi-choice l tree-expand +run 'tmux bind -t vi-choice K start-of-list 2> /dev/null' +run 'tmux bind -t vi-choice J end-of-list 2> /dev/null' +bind -t vi-choice H tree-collapse-all +bind -t vi-choice L tree-expand-all +bind -t vi-choice Escape cancel + + +# -- edit mode ----------------------------------------------------------------- + +# the following vi-copy bindings match my vim settings +# see https://github.com/gpakosz/.vim.git +bind -ct vi-edit H start-of-line +bind -ct vi-edit L end-of-line +bind -ct vi-edit q cancel +bind -ct vi-edit Escape cancel + + # -- copy mode ----------------------------------------------------------------- bind Enter copy-mode # enter copy mode