, like?" or "Is there a way to tell GVim to use escape sequences for the meta modifier?"? Context: set enc...">

"How to avoid treatment with GVim <Mh>, like?" or "Is there a way to tell GVim to use escape sequences for the meta modifier?"?

Context:

set encoding=utf-8

If I print:

:imap <Mh> foo

then i print

:imap <Mh>

I get:

i รจ foo

and, as a result, both <Mh> and รจ , if pressed in insert mode, insert foo

I tested this behavior on both Ubuntu 12.04 and Windows XP

Link to this question , it seems that GVim is considering a meta key adding 0x80 to the key code.
Reading the previous related answer and googleing, I thought that this could only be a question for the Vim terminal, and not for GVim.

Any suggestion?

+4
source share
1 answer

Due to the fact that keyboard input is performed internally, unfortunately, this is not possible today, even in GVIM. Even worse, some key combinations, such as Ctrl + non-alphabetic , cannot be displayed, and Ctrl + letter vs. Ctrl + Shift + letter cannot be selected.

Some people (primarily Paul LevNerd Evans) want to fix this (even for the Vim console in terminals that support this), and have posted various suggestions .

But to date, no patches or volunteers have yet been released, although many have expressed a desire to have this in a future release of Vim 8.

+4
source

All Articles