I'm trying to make shortcut for Vim, to make it more suitable for Esperanto when I press Ctrl+W:
imap <C-ĝ> <C-w> "Delete last word
It works fine with vim
but with gvim
it just puts ĝ
character.
How can I make it work with gvim
?
Edit: I figured out that it works with vim
even without mapping.
But I still can't make it work against gvim
.
I'm facing same problem with Cyrillic letters. For example, typing Ctrl+Ы in insert mode results in just Ы. I did some searching and .. looks like it is a GVim-specific problem.
Hopefully, there are other GUIs and Qt version works much better. It treats Ctrl+Ы as Ctrl+S as other X applications do (S and Ы share same key on my keyboard). xev shows same result. So, take a look at http://gitorious.org/vim-qt.
来源:https://stackoverflow.com/questions/16013290/shortcut-with-ctrl-doest-work-in-gvim