开发者

Vim key bindings in Xcode?

开发者 https://www.devze.com 2023-03-06 07:00 出处:网络
Is there any way to have Vim key bindi开发者_Python百科ngs in Xcode?If you still interested in Vim keybinding plugin for Xcode I made one. Here it is.

Is there any way to have Vim key bindi开发者_Python百科ngs in Xcode?


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's answer is correct, but slightly out of date. In the Xcode 13 GM, Apple tweaked how to enable Vim keybindings.

To improve access to the Vim Mode, Xcode replaced the Enable Vim key bindings preference with an Edit > Vim Mode menu item. (75491567)

Vim key bindings in Xcode?


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


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


Xcode 13 in 2021 has added native Vim key binding support:

Xcode > Preferences > Text Editing > Editing > Enable Vim key bindings

https://developer.apple.com/xcode/

Vim mode

Many common key combinations and editing modes familiar to Vim users are supported directly within the code editor, using the new bottom bar to show mode indicators.


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/


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 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号