有没有办法在 Xcode 4 中使用 VIM 键绑定?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6011758/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:02:05  来源:igfitidea点击:

Is there any way to have VIM keybindings in Xcode 4?

xcodevimxcode4vi

提问by Chris

Is there any way to have VIM keybindings in Xcode 4 ?

有没有办法在 Xcode 4 中使用 VIM 键绑定?

I've become a recent fan of vim, due to vicoapp...

由于 vicoapp,我最近成为了 vim 的粉丝...

采纳答案by drewag

I have been looking for a similar thing, but haven't had any luck since input managers were disabled. I have even considered trying to make my own plugin / hack. If a few people are interested, maybe a github project is in order?

我一直在寻找类似的东西,但自从输入管理器被禁用以来一直没有运气。我什至考虑过尝试制作自己的插件/黑客。如果几个人有兴趣,也许一个github项目是有序的?

Note: we don't want to use vim directly because the code completion, debugger, and other tools are not even close to being as good as Xcode 4 (mostly the code completion).

注意:我们不想直接使用 vim,因为代码补全、调试器和其他工具甚至不如 Xcode 4(主要是代码补全)。

回答by Shu Suzuki

If you still interested in Vim keybinding plugin for XCode4 I made one. Here it is. http://programming.jugglershu.net/softwares/xvim.html

如果您仍然对 XCode4 的 Vim 键绑定插件感兴趣,我做了一个。这里是。 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 Rhett D

The next best thing is JetBrains' excellent Objective-C IDE AppCode. They have a great Vim plugin called IdeaVIM that is actively maintained.

其次是 JetBrains 出色的 Objective-C IDE AppCode。他们有一个很棒的 Vim 插件,叫做 IdeaVIM,它被积极维护。

回答by Andrey A. Ugolnik

I use MacVim as editor instead xcode. For code completion i use vim plugin named clang_complete - awesome plugin.

我使用 MacVim 作为编辑器而不是 xcode。对于代码完成,我使用名为 clang_complete 的 vim 插件 - 很棒的插件。

回答by abigagli

I myself use and really appreciate Shu's XVim, but for completeness and in case you're still interested, just recently viemu has opened its beta for Xcode, you can check it out at

我自己使用并非常欣赏 Shu 的 XVim,但为了完整起见,如果你仍然感兴趣,最近 viemu 已经为 Xcode 开放了它的测试版,你可以在

http://www.viemu.com/blog/2013/05/01/viemu-for-xcode-public-beta-available/

http://www.viemu.com/blog/2013/05/01/viemu-for-xcode-public-beta-available/

回答by Goles

ViEmu is finally available for Xcode, check it out. It uses the same vim emulation engine that they are using for their Visual Studio plug-in, so all the polishing that has been added to the product since 2005 is there.

ViEmu 终于可用于 Xcode 了,看看吧。它使用与他们用于 Visual Studio 插件相同的 vim 仿真引擎,因此自 2005 年以来添加到产品中的所有改进都在那里。

I'm not affiliated to them, but I tested ViEmu and if it was available for Xcode 5, I would have paid for a license.

我不隶属于他们,但我测试了 ViEmu,如果它可用于 Xcode 5,我会支付许可证费用。

回答by Clay Bridges

I haven't tried it yet, but there's also $20 ViCiOUS. Right now, I use Shu's XVim plugin (cf. his answer), and recommend it.

我还没有尝试过,但也有 20 美元ViCiOUS。现在,我使用 Shu 的 XVim 插件(参见他的回答),并推荐它。