added more vi key bindings
This commit is contained in:
parent
d48ec949c6
commit
a5ce0116a4
1 changed files with 21 additions and 0 deletions
21
.tmux.conf
21
.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
|
||||
|
|
Loading…
Reference in a new issue