> In Cygwin's mintty terminal, I've implemented a feature called
> "application escape mode" that allows applications to switch the
> escape key to a non-ambiguous keycode, so as to avoid the need for the
> escape timeout. It's documented at
> http://code.google.com/p/mintty/wiki/CtrlSeqs#Escape_keycode
>
> A tip at http://code.google.com/p/mintty/wiki/Tips recommends putting
> it to use like this:
>
> let &t_ti.="\e[?7727h"
> let &t_te.="\e[?7727l"
> noremap <Esc>O[ <Esc>
> noremap! <Esc>O[ <Esc>
>
> This works fine at least in as far as getting out of insert mode is
> concerned, but unfortunately it doesn't have the desired effect when
> on the command line. Instead of cancelling a command, pressing Esc
> appears to have the same effect as pressing Enter, so for example
> trying to cancel ':q' will quit vim instead.
>
> Unfortunately I haven't been able to find mappings that make this work
> properly. Can anyone help?
Do you have 'x' present in your cpoptions? If you do, that is the default
behaviour of <ESC> in command mode to execute the typed command.
regards,
Christian
--
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:
Post a Comment