Sunday, December 4, 2011

Re: What does ^S work? -> stop output in terminals

* IL HAN <corone.il.han@gmail.com> [2011-12-04 10:54]:
> I use VIM 7.1
> OS: Linux (kernel version 2.6.34)
> CPU: Intel Core 2 Duo
>
> When I hold down the [CTRL] key and press the 's'
> key simultaneously (both in command mode or insert
> mode), since then, any key and any command doesn't
> work. And I cannot escape from that state.

the terminal reacts to CTRL-S to STOP the output.
vim does not get to see it at all this way.

> I don't know if this is a bug or not.

it's a feature! :-)

> But even if you think this isn't a bug,
> this is inconvenient and dangerous for me.
> I sometimes press ^S mistakenly.
> (Especially when I press "^W, s" or ^D.)

typos.. avoid!!

> Can you please, fix it?

"if it ain't broke - don't fix it!" ;-)

> or let me know how to escape from that state if you know that.

use CTRL-Q to resume the output.

you can disable start+stop within the
terminal with the "stty" command:

stty start ''
stty stop ''

"stty" should then show:

start = <undef>; stop = <undef>;

then again.. you might want to
use this feature now and then.

remember to try CTRL-Q if your
terminal seems to be frozen.
you may just restart the output. :-)

Sven

--
You received this message from the "vim_use" 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

No comments: