Im using iTerm2 + Tmux + Vim.
Here are my dotfiles: https://bitbucket.org/furion/dotfiles/src
The problem I'm having, is when Vim is opened within Tmux session, the C-s
binding doesn't work.
When I run Vim just in regular iTerm2 session, C-s
works fine. Since I use this keystroke a lot, its really frustrating.
Also, this issue is only present on OSX. On my Arch box, Tmux or without, everything works fine.
EDIT: I already have control flow disabled:
bind -r '\C-s'
stty -ixon
stty stop undef
This issue is only on OSX. Also, its only under Tmux on OSX. Without Tmux no issue. On Arch Linux With or w/o Tmux, no issue.
It probably has to do with flow control: historically (and still today, in some terminals), Ctrl-S pauses the output, and Ctrl-Q resumes it.
iTerm2 ignores Ctrl-S, as it assumes that it has no use for flow control in the world where 300 and 2400 baud modems are not all that common.
I am not sure, but I think stty -ixon
might help.
(I'm tentatively answering since it's been 5 hours, but I might be way off on the solution, even though I think the cause is correct).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With