Xcode 中的 Vi 键
我很惊讶还没有人问过这个问题。在 Xcode 中获得 Vi 体验的最佳方法是什么(如果有)?我了解 ViMate,但 TextMate 在集成和代码完成方面与 Xcode 并不接近。
顺便说一句,我正在使用 Xcode 4。
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.
BTW, I am using Xcode 4.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可能想尝试 xVim 这似乎是一个活跃的项目。目前表明它适用于 XCode 4.2、Espresso 和 Chocolat。想必您可以有选择地与其他应用程序一起启用它。
You might want to try out xVim which seems to be an active project. The currently indicate that it works with XCode 4.2, Espresso and Chocolat. Presumably you could selectively enable it with other applications.
这是我几周前制作的另一个插件。
http://programming.jugglershu.net/softwares/xvim.html
这是目前为个人(我的)开发的使用。因此,您可能会因缺乏实施而感到难过。然后给我反馈(功能请求)。如果我有足够的时间,我会添加一些按键绑定。
Here's another plugin which I made a few weeks ago.
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.
您将获得的最接近的是 http://www.corsofamily.net/jcorso/vi/,或配置外部编辑器。这是 XCode 长期存在的缺陷。 (如果你问任何 vi 用户,那就是……)
OSX 和 XCode 通常更喜欢 Emacs 按键绑定。
有关 OSX 通用键绑定策略的更多信息:http://hints.macworld.com/ Article.php?story=20060317045211408
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..)
OSX and XCode in general favors Emacs key bindings.
More info on general key-binding strategy for OSX: http://hints.macworld.com/article.php?story=20060317045211408
现在,我高效地使用 XVim†。我可能会尝试 20 美元的 ViCiOUS,它看起来更精致;我喜欢对我的工具链进行源代码访问,但这是针对 Xcode 的,所以来吧我。
† 不是 xVim,我刚刚发现的,但显然面朝下在泳池里。在 [Xx][Vv]im 命名空间中,Xvim(类似于 Xcode)对我来说更有意义。在那里,我说了。
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'mon me.
† Not xVim, 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.
这是另一个选择:KeyRemap4MacBook。
Here's another choice: KeyRemap4MacBook.