Xcode 中的 Vim 键绑定?
有什么方法可以在 Xcode 中进行 Vim 键绑定吗?
Is there any way to have Vim key bindings in Xcode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有什么方法可以在 Xcode 中进行 Vim 键绑定吗?
Is there any way to have Vim key bindings in Xcode?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
如果你仍然对 Xcode 的 Vim 键绑定插件感兴趣,我做了一个。这里是。
http://programming.jugglershu.net/softwares/xvim.html
这是目前专为个人(我的)使用而开发。因此,您可能会因缺乏实施而感到难过。然后给我反馈(功能请求)。如果我有足够的时间,我会添加一些按键绑定。
If you still interested in Vim keybinding plugin for Xcode I made one. Here it is.
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.
@pkamb的答案< /a> 是正确的,但有点过时了。在 Xcode 13 GM 中,Apple 调整了启用 Vim 键绑定的方式。
@pkamb's answer is correct, but slightly out of date. In the Xcode 13 GM, Apple tweaked how to enable Vim keybindings.
其次是 JetBrains 出色的 Objective-C IDE AppCode。他们有一个很棒的 Vim 插件,名为 IdeaVIM,并且得到积极维护。
The next best thing is JetBrains' excellent Objective-C IDE AppCode. They have a great Vim plugin called IdeaVIM that is actively maintained.
2021 年的 Xcode 13 添加了原生 Vim 键绑定支持:
https://developer.apple.com/xcode/
Xcode 13 in 2021 has added native Vim key binding support:
https://developer.apple.com/xcode/
我使用 MacVim 作为编辑器而不是 xcode。对于代码补全,我使用名为 clang_complete 的 vim 插件 - 很棒的插件。
I use MacVim as editor instead xcode. For code completion i use vim plugin named clang_complete - awesome plugin.
我自己使用并且非常欣赏 Shu 的 XVim,但是为了完整起见并且如果您仍然感兴趣,最近 viemu 刚刚开放了 Xcode 的测试版,您可以在
http://www.viemu.com/blog/2013/05/01/viemu-for -xcode-public-beta-可用/
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
http://www.viemu.com/blog/2013/05/01/viemu-for-xcode-public-beta-available/
我还没试过,但还有 20 美元 ViCiOUS。现在,我使用 Shu 的 XVim 插件(参见他的答案),并推荐它。
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.
ViEmu 终于可用于 Xcode,请查看。它使用与 Visual Studio 插件相同的 vim 模拟引擎,因此自 2005 年以来添加到该产品的所有改进都已完成。
我不隶属于他们,但我测试了 ViEmu,如果它可用于 Xcode 5,我会支付许可证费用。
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.
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.
尝试
编辑器 -> Xcode 中的 Vim 模式
=>13。它支持大多数常见的键绑定,但也有例外,这是可以理解的,因为它是一个相对较新的功能。对我来说最值得注意的是缺乏对
.vimrc
文件的支持,因此如果您想要(或者只是想要更多功能),您仍然可以使用 https://github.com/XVimProject/XVim2。根据当前维护者的判断,Xcode 默认情况下它最终可能会变得多余 vim 支持,但对我来说仍然很好用。Try
Editor -> Vim Mode
in Xcode =>13.It supports most of the common key bindings but there are exceptions, which is understandable given it's a relatively new feature. Most notably for me is the lack of support for a
.vimrc
file so if you want that (or just want more features) you can still use https://github.com/XVimProject/XVim2. Judging by the current maintainer it might eventually be made redundant by Xcode's default vim support but it still works well for me.