I'd like to overload both Ctrl+S and Cmd+S to save a file if I happen to be editing something in Vim.
After some head-scratching I think I've discovered that
^S in a terminal is perhaps being caught by the shell for sending a signal to the process, or perhaps Vim is doing something special to not listen to it. I have a perl script that puts the term in raw mode which can read my mappings just fine (the
^S sends hex
0x13), but nothing happens when I am in Vim
Ctrl+V verbatim-mode and type it. In the bare zsh shell, verbatim-mode does show me that I am pressing
^S. This seems to refute the proposition that there is some terminal program flow-control bound to this key, as I am able to get zsh to see it.
How can I get vim to recognize my Ctrl+S?