Thursday, November 8, 2012

Re: Commands from insert mode

On Thursday, November 8, 2012 7:56:27 AM UTC-6, Tim Chase wrote:
> On 11/07/12 21:18, Suresh Govindachar wrote:
> > [ how to distinguish between lower and upper case X in
> > the following imaps ]
> >
> > > :imap <C-x> <Delete>
> > > :imap <C-X> <BS>
>
> AFAIK, most versions of Vim don't distinguish between <C-{letter}>
> and <C-S-{letter}> as they send the same ASCII code. You might be
> able to distinguish between, say <C-F2> and <C-S-F2> if you wanted
> to use the function keys. Likewise, I don't think control+number is
> caught in most cases, let alone control+shift+number (the exception
> being control+@ and control+^ both of which Vim uses, but can be
> remapped).
>

However, Vim CAN distinguish between <A-x> and <A-X> (alt+x and alt+X). If you change your modifier key you should be set.

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