On 2020-05-30, lacygoill wrote:
> Describe the bug
> 
> We can't map a key to C-s; it makes Vim freeze.
> 
> To Reproduce
> 
> Start Vim with this shell command:
> 
> vim -Nu NONE +'nno <c-s> :echo "hit ctrl-s"<cr>'
> 
> Press C-s: nothing happens, and Vim freezes until you press C-q.
> 
> Expected behavior
> 
> hit ctrl-s is echo'ed on the command-line, and Vim doesn't freeze.
> 
> Environment
> 
>   • Vim version: 8.2 Included patches: 1-855
>   • OS: Ubuntu 16.04.6 LTS
>   • Terminal: XTerm(322)
> 
> Additional context
> 
> To avoid this pitfall, I have this line in my ~/.zshrc:
> 
> stty -ixon
> 
> It has always worked until the commit d6cd5ff. The latter has probably
> introduced a regression.

As far as I can tell, this is expected behavior.  Search the help
for Ctrl-S and Ctrl-Q and you'll find notes that these are both used
for flow control.

    :helpgrep \cctrl.[sq]

I've had the following in my ~/.bashrc for years to avoid
fat-fingering Ctrl-S while using Vim and wondering what happened,
and also to enable forward searching in emacs-mode readline
interfaces.

    stty stop undef

I've left Ctrl-Q alone, just in case.  -ixon would have worked as
well.

Regards,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20200530210856.GC15884%40phoenix.

Raspunde prin e-mail lui