ALT key mapping in windows 10

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ALT key mapping in windows 10

Deepak kumar
Hi Vim Users,

I am a vim user on Unix like machines but for my current project, I have to use it on windows 10 machine.

how to map ALT+ LEFT | RIGHT | UP | DOWN keys in vimrc file?
currently, I using like this: nmap <silent> <A-Up> :wincmd k<CR>

Can anyone please suggest vim configuration on windows(including NERDTree and all?


Thank & Regards,
Deepak

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ALT key mapping in windows 10

John Little-4
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

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ALT key mapping in windows 10

Tony Mechelynck
On Fri, Dec 21, 2018 at 12:36 AM John Little <[hidden email]> 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 [hidden email].
For more options, visit https://groups.google.com/d/optout.