Xcode 中的 Vi 键
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5623600/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Vi keys in Xcode
提问by kizzx2
I'm surprised no one has asked this yet. What's the best way (if any) to get a Vi experience in Xcode? I know about ViMate but TextMate doesn't come close to Xcode in terms of integration and code completion.
我很惊讶还没有人问这个。在 Xcode 中获得 Vi 体验的最佳方式(如果有的话)是什么?我知道 ViMate,但 TextMate 在集成和代码完成方面并不接近 Xcode。
BTW, I am using Xcode 4.
顺便说一句,我正在使用 Xcode 4。
采纳答案by James Snyder
回答by Shu Suzuki
Here's another plugin which I made a few weeks ago. http://programming.jugglershu.net/softwares/xvim.html
这是我几周前制作的另一个插件。 http://programming.jugglershu.net/softwares/xvim.html
This is currently developed for personal (my) use. So you may feel bad with some lack of implementation. Give me a feed back(feature request) then. I'll add some keybinds if I have enough time.
这是目前为个人(我)使用而开发的。因此,您可能会因缺乏实施而感到难过。然后给我一个反馈(功能请求)。如果我有足够的时间,我会添加一些键绑定。
回答by synthesizerpatel
The closest you'll get is http://www.corsofamily.net/jcorso/vi/, or configuring an external editor. This has been a long-standing deficiency with XCode. (If you ask any vi user that is..)
最接近的是http://www.corsofamily.net/jcorso/vi/,或者配置一个外部编辑器。这一直是 XCode 的一个长期缺陷。(如果你问任何 vi 用户是......)
OSX and XCode in general favors Emacs key bindings.
OSX 和 XCode 通常支持 Emacs 键绑定。
More info on general key-binding strategy for OSX: http://hints.macworld.com/article.php?story=20060317045211408
有关 OSX 的一般键绑定策略的更多信息:http: //hints.macworld.com/article.php?story= 20060317045211408
回答by Clay Bridges
Right now, I productively use XVim?. I'll probably try $20 ViCiOUS, which seems more polished; I like having source access to my tool-chain, but this is for Xcode, so c'monme.
现在,我高效地使用XVim?。我可能会尝试 20 美元ViCiOUS,它看起来更精致;我喜欢拥有对我的工具链的源代码访问权限,但这是针对 Xcode 的,所以来吧。
? NotxVim, which I just discovered, but apparently face down in the pool. In the [Xx][Vv]im namespace, Xvim (à la Xcode) would have made more sense to me. There, I said it.
? 不是我刚刚发现的xVim,但显然在池中面朝下。在 [Xx][Vv]im 命名空间中,Xvim (à la Xcode) 对我来说更有意义。在那里,我说了。
回答by Kjuly
Here's another choice: KeyRemap4MacBook.
这是另一个选择:KeyRemap4MacBook。