在 PuTTY 中创建 ctrl+tab 键绑定

发布于 2024-07-17 00:48:42 字数 367 浏览 13 评论 0原文

我希望能够将 vim 命令 :tabnext:tabprev 映射到 CTRL+TABCTRL+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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

新人笑 2024-07-24 00:48:42

当您按 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

挽梦忆笙歌 2024-07-24 00:48:42

我相信此时,使用 PuTTY 无法使用 Ctrl+Tab,因为 PuTTY 不允许您为键配置特定的翻译。 这是一篇不错的文章,展示了如果 PuTTY 支持此功能,您将如何设置:

http://www.staldal.nu/tech/2009/01/10/how-to-use-ctrl-tab-in-gnu-screen /

如果您使用(或考虑使用)像 Autohotkey 这样的热键/宏程序,您可以自己模拟此行为。 例如,此 Autohotkey 配置脚本将完全按照您的要求执行:(

#IfWinActive PuTTY
^Tab::Send :tabnext
^+Tab::Send :tabprev
#IfWinActive

请注意,此示例只是查找以 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:

#IfWinActive PuTTY
^Tab::Send :tabnext
^+Tab::Send :tabprev
#IfWinActive

(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.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文