Saturday, March 23, 2013

Re: cmap does't work to quit command line

On 2013-03-23 09:35, Britton Kerin wrote:
> I try to make <C-q> always mean 'make the current thing go away' but
> this doesn't work for making the command line go away with cmap.
>
> Pushing Esc does so I don't see why the map in the subject doesn't.
> It does do something though, it changes from just putting a carrot
> on the command line and flickering the cursor to giving an error:
>
> E492: Not an editor command: (whatever was on command line)

What are your 'cpoptions' set to? Most importantly, do they contain
"x"? As detailed at

:help c_<esc>
:help cpo-x

either the use of <esc> in a macro, or if "x" is present in
'cpoptions', it will treat it as an "execute this".

It's not a default, so I'd suspect that you've manually set
it somewhere in your vimrc chain.

Additionally, using control+Q can sometimes be intercepted as one of a
terminal's flow-control pairings (usually control+S stops flow,
control+Q resumes flow), so in some environments, Vim may never see
the control+Q.

-tim


--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: