Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've found ^S mapped to be the fwd-search key for zsh (ohmyzsh) but I would like to use it in vim for various mappings as well - it seems like the zsh mapping is preventing me from using it now.

Any way to unmap the bindkey or have it both ways?

share|improve this question
Are you sure that it's oh-my-zsh? I couldn't find anything in its sources where bindkey maps Ctrl-S. – Daniel Beck Feb 2 '12 at 15:15
yeah, i think it is actually default zsh - i mention ohmyzsh in case there is something there that might be important as well - i'm still new new zsh – liamgriffiths Feb 2 '12 at 15:23
On my system (never used zsh before) Ctrl-S suspends, as it should. Have you checked your zsh profile files? – Daniel Beck Feb 2 '12 at 15:26
i'm still digging around - hoping i could find insight here faster :-) ... previously bash for me worked out fine with C-s – liamgriffiths Feb 2 '12 at 15:27
up vote 7 down vote accepted

This is probably flow-control, which is handled by your terminal and not your shell. Typically control-s stops terminal output, and control-q resumes it. See the note in ":help ctrl-s".

To remove this behavior, you could try these shell commands:

stty stop undef
stty start undef

This may not work, though. If you are using a GUI terminal emulator, try looking for flow control settings within its options.

share|improve this answer
ah thanks that was it! – liamgriffiths Feb 2 '12 at 22:00

I shot it down in two steps:

  1. Disabling flow control in Konsole:

    • Settings > Manage Profiles... > Edit Profile > Advanced (tab) > uncheck 'Enable Flow Control [...]')

  2. Tell Zsh about it, too:

    setopt noflowcontrol
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.