TMUX using HJKL to navigate panes

前端 未结 2 1890
情书的邮戳
情书的邮戳 2021-01-31 02:15

Standard TMUX is set to use ctrl-b + [up, down, left, right] when navigating between panes.

I would like to make it so that I can use ctrl-b (or the prefix of my choice

2条回答
  •  野的像风
    2021-01-31 02:27

    You can do this as follows:

    bind h select-pane -L
    bind j select-pane -D
    bind k select-pane -U
    bind l select-pane -R
    

    Note that mode-keys refers to using vi-like navigation within a buffer and status-keys refers to using vi-like editing within the status bar, but neither refers to switching between panes.

提交回复
热议问题