-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sidetrack] Have anyone tried to fully replace xcode with vim? #1044
Comments
There is no compiler to see the results of your code, also you wouldn't have the same autosuggest setup since you wouldn't have direct access to Apple's methods, so you wouldn't be able to peruse the available methods in the same manner. |
Since last month, I started using emacs instead of vim and I was excited by this text editor. But if we talking about the text editor, I actually can't realize how to fully use emacs or vim as the full-featured development environment. Afaik, it's due for several reasons. First, it's The next one - ps. subscribed, so interesting to listen to another opinion. |
As the author of the original mentioned plugin, there are a lot of issues with the server that depends on now. One big one is not supporting Xcode workspaces which at least means not supporting most CocoaPods installations. I've very interested in this topic, and I think with async support in Vim 8, along with the swift support being added to YCM there's a real possibility we can get somewhere with this. There are a lot of issues that would need to be solved to effectively replace Xcode for general development (assuming you require autocomplete, if not, you can go ahead and use vim-xcode to do pretty much everything else). A few of the issues off the top of my head:
These are just a few quick hits as I've been thinking a lot lately about what is possible here. I'm definitely interested in working on this further to see how feasible it is. If anyone else is interested in this, or knows of any existing efforts out there I'd love to hear about it! |
@hamsternik i believe building and running the app to device could be done with xcrun xcodebuild with bunch of arguments. i'd imagine we need script that wrap this to make life easier. but @keith makes a good point on the need to attach lldb to debug and logging window which i completely overlook |
I've had luck using Vim for Apple SDK Xcode development for the last several years on and off in large scale code bases. I generally try to stay away from plugins and try to maximize the existing Vim features as much as possible. That being said there's a few tools I use in addition to Vim. Semantic Vim SupportYouCompleteMe is the main semantic plugin I use and it has worked great for clang based ObjC/C/C++ ( and python, and more ) development. It doesn't have Swift support yet, but I think the first commit is almost ready to land in YCMD. It already supports completion well and diagnostics are almost done. If anyone is interested in helping manually test it in or give feedback it could be super helpful and your feedback could help me improve it. 🍺 I started SwiftySwiftVim to expose Swift editor facilities over HTTP: the backend for Swift under YouCompleteMe. For any of this stuff to work in real projects, Xcode needs to generate compiler commands to feed into the tooling. I posted up XcodeCompilationDatabase which is a tool that can generate Searching massive codebasesXcode's search engine doens't scale with several thousands of files anyways and there is better ways to search. I use Building and RunningThere is a decent CLI tool for the simulator now which needs a lot of help to replicate what Xcode can do. I recently posted a shell script to replicate the behavior of I'm not sure if it is possible to get right without using Xcode's internal frameworks. RefactoringFind and replace abilities can be subbed with I've had luck doing semantic refactoring with automated tooling based on Hope that's helpful! |
Hi sorry if this is not really related to xvim, but I'm just wondering if anyone has fully move away from using xcode to vim for ios project.
Given the future seems to be bleak for this plugin if in the future Apple completely disable the ability to load plugin even on unsigned xcode, i'm seriously considering to work with my xcode projects in vim. I think there should be no issue of building, testing or running on device using command line xcodebuild. The real issue might be autocompletion. I'm looking into this plugin https://github.com/keith/sourcekittendaemon.vim but i'm not sure if it will work well. The other thing is build/project settings editor and adding files to target, which is gonna be very painful to do manually.
Of course, finger-crossed, i hope Apple somehow will unveil vim mode on xcode this wwdc or they improve the extension api so there is hope in making this plugin an extension. Anyway i'd like to thank all the contributors and esp @JugglerShu for this awesome plugin! Honestly i cant imagine having to work with xcode without xvim.
The text was updated successfully, but these errors were encountered: