Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conflict with vim < C-b >? #722

Closed
twmht opened this issue Feb 27, 2024 · 4 comments
Closed

conflict with vim < C-b >? #722

twmht opened this issue Feb 27, 2024 · 4 comments

Comments

@twmht
Copy link

twmht commented Feb 27, 2024

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

@gpakosz
Copy link
Owner

gpakosz commented Feb 27, 2024

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
Copy link
Owner

gpakosz commented Feb 27, 2024

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
Copy link
Author

twmht commented Feb 27, 2024

@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
Copy link
Owner

gpakosz commented Feb 27, 2024

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

@twmht twmht closed this as completed Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants