.tmux: Restore default shortcut for next/previous window

Created on 14 Aug 2018  路  6Comments  路  Source: gpakosz/.tmux

Hello,

i want to restore default key for next and previous window:
CTRL + B, N
CTRL + B, P

How to configure it?

I tried to comment the followinf lines without success:
unbind n
unbind p
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window

Regards.

support

Most helpful comment

Thank you very much, it works!

All 6 comments

Hello @magostinelli 馃憢

Commenting these lines won't have any effect until you restart all tmux processes.

I recommend the following approach: at the end of your ~/.tmux.conf.local copy, add the following bindings:

bind n next-window
bind p previous-window

Thank you very much, it works!

This should be default, mainly because these are the defaults in tmux in general. Especially when I often have embedded tmuxs when ssh'ing into servers.

Just out of curiosity, why does Oh My Tmux not use the default bindings? :)

Because that's before all my configuration 馃檭
I may revisit that part though

A bit weird that I use very nice configuration of tmux, but I have to revert some defaults manually. :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ww7 picture ww7  路  4Comments

fwarmuth picture fwarmuth  路  5Comments

danielporto picture danielporto  路  8Comments

obitech picture obitech  路  4Comments

eluft84 picture eluft84  路  8Comments