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?
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.
I shot it down in two steps:
Disabling flow control in Konsole:
Tell Zsh about it, too:
setopt noflowcontrol
bindkey
mapsCtrl-S
.Ctrl-S
suspends, as it should. Have you checked your zsh profile files?bindkey
. Usebindkey "^S"
to see whatCtrl-S
specifically is bound to. Look up details on the bound "widgets" withman zshzle
.