TMUX using HJKL to navigate panes

前端 未结 2 1889
情书的邮戳
情书的邮戳 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.

    0 讨论(0)
  • 2021-01-31 02:38

    Did you remember to source your ~/.tmux.conf file? After making any changes in this file you need to enter the following command to see any of the changes take place

    tmux source-file ~/.tmux.conf
    
    0 讨论(0)
提交回复
热议问题