1
0
Fork 0
mirror of synced 2024-05-26 20:11:09 -04:00

added more vi key bindings

This commit is contained in:
Gregory Pakosz 2014-11-23 10:53:47 +01:00
parent d48ec949c6
commit a5ce0116a4

View file

@ -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