如何将 key ctrl-left 绑定到 word-left?

发布于 2024-07-26 16:25:42 字数 188 浏览 4 评论 0原文

我使用 tcsh 和 emacs。 在 emacs 中,我习惯使用 ctrl-left 绑定键将我向左移动一个单词。 我想在我的 tcsh 终端中做同样的事情。

我可以按 ctrl-b,但我只是不习惯。

从bindkey manpath中我不清楚如何指定ctrl-left组合键。

我该怎么做?

I use tcsh and emacs. In emacs, I'm used to the ctrl-left bindkey moving me left by a word. I'd like to do the same thing in my tcsh terminal.

I can do ctrl-b, but I'm just not used to it.

It's not clear to me from the bindkey manpath how to specify the ctrl-left key combination.

How do I do it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

终止放荡 2024-08-02 16:25:42

谷歌回答了所有问题(如果你看得足够深入的话)。

bindkey '^[[1;5D'   backward-word           # ctrl+left
bindkey '^[[1;5C'   forward-word            # ctrl+right

来自 Google 的缓存 http://lofotenmoose.info/bsd/conf/amd64/tcshrc-root

这适用于 tcsh 6.13.00

Google answers all (if you look deep enough).

bindkey '^[[1;5D'   backward-word           # ctrl+left
bindkey '^[[1;5C'   forward-word            # ctrl+right

From Google's cache of http://lofotenmoose.info/bsd/conf/amd64/tcshrc-root.

This works for tcsh 6.13.00

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