如何将菜单键(“应用程序键”)映射到vim中的Escape键? [英] How to map Menu key ("Application key") to Escape key in vim?

查看:169
本文介绍了如何将菜单键(“应用程序键”)映射到vim中的Escape键?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为使用菜单键退出vim的插入模式将是一件好事。使用超级键也是不错的,但是我不知道是否可能,因为超级键是一个修饰符。

I think that using Menu key to quit vim's insert mode would be a great thing. It would be also nice to use Super key for that, but I'm not sure if it possible since Super key is a modifier.

无论如何,我找不到任何与此有关的事情。寻求你的帮助,并提前感谢!

Anyway, I couldn't find anything related to this. Looking for your help and thanks in advance!

推荐答案

我不认为有任何方式可以配置Vim注意菜单键这样,
,但根据您的系统,有多种方法可以将菜单键转换为退出键。

I don't think there's any way you can configure Vim to pay attention to the Menu key as such, but depending on your system there are various ways to turn the Menu key into an Escape key.

如果您使用X11在Linux上:

If you're using X11 on Linux:


  • 命令 xmodmap -e'keycode 135 = Escape'将将您的菜单键转换为当前会话的退出键,但不是永久的。要在Gnome下永久使用,您可以尝试在System&rarr下添加它;偏好→启动应用程序。

  • xkeycaps 程序将为您提供类似重新映射的GUI。

  • The command xmodmap -e 'keycode 135 = Escape' will turn your Menu key into an Escape key for the current session, but is not permanent. To make it permanent under Gnome, you might try adding it under System → Preferences → Startup Applications.
  • The xkeycaps program will give you a GUI for similar remappings.

有关详细信息:

http://46dogs.blogspot.com/2008/05/remap-keys-in-ubuntu-804-hardy-heron。 html

http://ubuntuforums.org/archive/index.php/t-106209.html

这篇关于如何将菜单键(“应用程序键”)映射到vim中的Escape键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆