How to disable keybinding in Tmux
Using Tmux and Vim is a pain sometimes. One of the collisions for me is Control-S
. I use it in Vim for opening buffers in split, but when using Tmux, well...
Tmux does something stupid with it, I can't figure out whats the purpose. But basically, when Cs
is pressed in Tmux, screen freezes. And it unfreezes with Cq
. I've no idea whats that good for, if anything.
unbind C-s
unbind C-q
I tried to unbind Cs in tmux.conf, but it didn't work. How can I unbind it?
Also I freed the binding from Terminal, in .bashrc
stty -ixon -ixoff
First of all, I would say that the Ctrl-S
(suspend the output) "feature" doesn't belong to tmux. The Ctrl+S and Ctrl+Q
is actually the XON/XOFF protocol. It lives with Unix/linux for long time.
You can disable it by:
stty -ixon
or
stty stop undef
you could check by stty -a
before and after the change. easier is, try the commands above, and press Ctrl-S
to see if it worked.
good luck.
链接地址: http://www.djcxy.com/p/86134.html上一篇: 未找到Tmux电力线提示命令
下一篇: 如何禁用Tmux中的键绑定