Shortcut with Ctrl does't work in gvim

人盡茶涼 提交于 2019-12-08 07:00:51

问题


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.


回答1:


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!