在 PuTTY 中创建 ctrl+tab 键绑定
我希望能够将 vim 命令 :tabnext
和 :tabprev
映射到 CTRL+TAB
和 CTRL+SHIFT+分别按 TAB
。 不幸的是,我似乎遇到了 PuTTY 吃掉这些字符组合的问题。
我尝试过寻找信息,但没有结果。 我很确定这是 PuTTY 的东西,但似乎没有该应用程序的任何帮助/参考区域。
我很好奇这里是否有人有任何经验或建议来解决这个问题。
@rmeador:尝试在 vim 中映射组合键。
我尝试这样做,但似乎 vim 没有获得组合。 我不确定这是否与术语设置或 PuTTY 的问题有关。
I'd like to be able to map the vim commands :tabnext
and :tabprev
to CTRL+TAB
and CTRL+SHIFT+TAB
respectively. Unfortunately, I seem to be running into the problem where PuTTY eats these character combinations.
I've tried searching for information, but to no avail. I'm pretty sure this is a PuTTY thing but there doesn't seem to be any sort of help/reference area for the application.
I am curious if anyone here has any experience or suggestions for figuring this out.
@rmeador: try mapping the key combo within vim.
I have attempted to do this, but it doesn't appear like vim is getting the combo. I'm not certain if this is related to the term settings or an issue with PuTTY.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您按 Ctrl+Tab 时,PuTTY 不会发送任何内容。
您可以按照此处所述修补 PuTTY:使用 Ctrl+ PuTTY 上的 GNU 屏幕中的选项卡
PuTTY doesn't send anything when you press Ctrl+Tab.
You can patch PuTTY as it is described here: Using Ctrl+Tab in GNU Screen over PuTTY
我相信此时,使用 PuTTY 无法使用 Ctrl+Tab,因为 PuTTY 不允许您为键配置特定的翻译。 这是一篇不错的文章,展示了如果 PuTTY 支持此功能,您将如何设置:
http://www.staldal.nu/tech/2009/01/10/how-to-use-ctrl-tab-in-gnu-screen /
如果您使用(或考虑使用)像 Autohotkey 这样的热键/宏程序,您可以自己模拟此行为。 例如,此 Autohotkey 配置脚本将完全按照您的要求执行:(
请注意,此示例只是查找以 PuTTY 开头的任何窗口标题,因此您必须根据标题配置进行调整。)
I believe that at this time, using Ctrl+Tab is not possible with PuTTY, because PuTTY does not allow you to configure specific translations for keys. Here is a decent article that shows how you would set this up if PuTTY did support this feature:
http://www.staldal.nu/tech/2009/01/10/how-to-use-ctrl-tab-in-gnu-screen/
If you use (or would consider using) a hotkey/macro program like Autohotkey, you could emulate this behavior yourself. For example, this Autohotkey config script would do exactly what you want:
(Note that this example is just looking for any window title starting with PuTTY, so you'd have to adjust based on your title configuration.)