On 11 December 2013, Ajabu Tex <[email protected]> wrote:
> Hallo.
> 
> On Vim I want to imap the following sequence of command under the
> hotkey Ctrl-S:
> 
>     imap <C-S> <Esc>:w<Enter>i
>     imap <Ctrl>S <Esc>:w<Enter>i
> 
> but it doesnt work, nor the first version nor the second one.
> 
> It works properly if I change hotkey, for example:
> 
>     imap <F12> <Esc>:w<Enter>i
> 
> works as one can expect.
> 
> What is wrong with Ctrl_S?

    On UNIX terminals Ctrl-S is the default stop character for the tty
line discipline:

$ stty -a | grep '\^S'
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;

    Try this:

(1) open a file in Vim, enter insert mode;
(2) press Ctrl-S;
(3) type something;
(4) press Ctrl-Q.

    /lcd

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to