gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.54k stars 3.33k forks source link

conflict with vim < C-b >? #722

Closed twmht closed 4 months ago

twmht commented 4 months ago

I found out I need to enter < C-b > in vim twice in order to move back the page, any idea?

gpakosz commented 4 months ago

Hello @twmht 👋

Yes this is standard tmux behavior: CTRL + b is tmux's default prefix and using it twice sends the key combination to the process in the current pane.

gpakosz commented 4 months ago

You can stop using CTRL + b as a prefix, which I do,

See your .local customization file

# replace C-b by C-a instead of using both prefixes
set -gu prefix2
unbind C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
twmht commented 4 months ago

@gpakosz Appeciate! Because you have taken into account the scenario where the editor is vim, it led me to believe that you have already considered this. May I ask if there would be any changes if the editor is vim?

gpakosz commented 4 months ago

On a general basis, it seems that users of Oh my tmux! don't want tmux stock bindings to be removed so I guess there's pretty much nothing to do except unbinding CTRL + b in tmux or use other bindings in Vim