How can I bindkey ctrl-left to word-left?

我是研究僧i 提交于 2019-12-22 08:58:20

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/1099507/how-can-i-bindkey-ctrl-left-to-word-left

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