Thursday, December 20, 2018

Re: ALT key mapping in windows 10

On Fri, Dec 21, 2018 at 12:36 AM John Little <john.b.little@gmail.com> wrote:
>
> On Friday, December 21, 2018 at 2:50:06 AM UTC+13, Deepak kumar wrote:
>
> > how to map ALT+ LEFT | RIGHT | UP | DOWN keys in vimrc file?
>
> Generally, to find what vim can map, enter insert mode, type ctrl-v then what you want to map. If you see something, then that's what you can map. If not, vim isn't seeing the keys and has trouble mapping it. I see <M-Left> in gvim for alt+left.
>
> HTH, and regards, John Little

Yes, and in addition, sometimes (especially when running in a
terminal, but for some combinations also in gvim) different sets of
key+modifiers are not seen as different by Vim and as a result they
cannot be mapped separately. The canonical case is Ctrl-a to Ctrl-z
which is guaranteed to be seen as identical with Ctrl-Shift-a to
Ctrl-Shift-z. For Ctrl + cursor key, the presence vs. absence of Shift
may or may not make a difference depending on OS and on gvim vs.
Console Vim. For Alt + something, other modifiers are usually, but not
always, taken into consideration. You may have to experiment to
determine what is and isn't seen as different on your particular
system.

Best regards,
Tony.

--
--
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/d/optout.

No comments: