Saturday, November 12, 2022

Re: Emulate keyboard keys through Vim that the OS interpret it.

On Sat, 12 Nov 2022 03:05:06 -0800 (PST)
Nicolas <nivaemail@gmail.com> wrote:
> Is it possible to emulate keyboard keys through Vim Editor so that
> the OS interprets them?
>

Vim sits on _top_ of OS, so it's unlikely that Vim can modify a keypress
event and send it to OS. That would require Vim to sit in the _middle_
of the keypress event and the OS.

I'm doubtful you want that, though. You probably want to map a key in
Vim. This assumption is supported by your example.

> example: Is is possible to emulate Windows Key(VK_LWIN)+R keys?

Vim cannot map Windows keys. But you can look through online help sites,
e.g., vi.stackexchange.com, to see if anyone has come up with a
workaround.

Here is a possible solution: https://stackoverflow.com/q/327415/11135136

--
Enan
3nan.ajmain@gmail.com
https://www.github.com/3N4N

GPG Key ID: 448F8D0D0D6DB601566E396CA031EA10A3ECB75D

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20221112173924.49f2661f%40cirdan.

No comments: