更改Sublime Text 2中Alt键的行为 [英] Change behavior of Alt key in Sublime Text 2
问题描述
我希望能够在Sublime Text 2中使用alt键,就像我可以在iTerm的命令行中使用它一样.例如,当我按下 alt + f 时,光标向前移动一个单词,或者当我按下 alt + b 时,光标向后移动一个单词.
I want to be able to use the alt key in Sublime Text 2 like I can use it on the command line in iTerm. For example, when I hit alt+f, the cursor moves forward a word, or when I hit alt+b, the cursor moves backward a word.
相反,会发生什么情况,即插入了与键对应的UTF + 8个字符(例如:ƒ
或∫
).在Mac上的iTerm中,我可以将左alt行为更改为类似于+ esc的行为,而且似乎可以解决问题.
Instead, what happens is UTF+8 characters corresponding to the keys get inserted (ex: ƒ
or ∫
). In iTerm on the Mac, I can change the left alt behavior to act like +esc and it seems to do the trick.
这可能是一般的Mac OS X问题(在网络浏览器中我有同样的问题),也可能是Sublime Text 2特有的问题,因此,我将感谢Mac或Sublime Text 2的专业知识.谢谢!
This could either be a Mac OS X problem in general (I have the same problem in the web browser) or something specific with Sublime Text 2 so I would appreciate any Mac or Sublime Text 2 expertise. Thanks!
推荐答案
有一个Sublime Text 2插件,名为 Sublemacs Pro 提供类似emacs的键绑定和操作,包括您提到的固定键和操作.您可以找到安装说明和完整的键绑定参考 > Github页面.
There is a Sublime Text 2 plugin called Sublemacs Pro that provides emacs-like keybindings and operations, including those that you mentioned pining for. You can find installation instructions and the complete keybinding reference on the Github page.
这篇关于更改Sublime Text 2中Alt键的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!