Back to Blog
Appcode vs xcode7/6/2023 ![]() ![]() ![]() Or just use Vim to edit your code faster, and continue to use XCode for the rest. Of course Vim can't be expected to replace something like Interface Builder, but just about every other aspect of iOS dev can be achieved with a Vim-only solution. XCode relies on gdb for debugging, which can also be used quite well with Vim, via plugin. Your workflow might be to use Vim for editing code, and switch to XCode for building the project, but Vim can also run the same build tools that XCode uses, and with a little more work you'll even be able to jump to the lines with errors. ![]() I seem to recall that Emacs provides something similar.īut none of this precludes you from using Vim without setting Preferred Editor: just open and edit your project files in Vim as you would normally. With a little work, and the above Preferred Editor preference, one should be able to send the file to be edited to any instance of Vim, including an existing Vim running within an xterm. Vim's remote feature might prove useful here, see :help remote. This Preferred Editor setting has the problem that you'll get a new window with each opened file, which may not match your workflow. Preferred Editor can be set to an external program such as MacVim note that Emacs should be already listed as a selection: when Emacs is selected XCode launches Terminal.app with Emacs in a terminal. In XCode Preferences, go to the File Types tab, and then file->text->sourcecode. XCode does allow you to select an external application when you open files, by file type. The terminal version of Vim is a little easier to live with in this particular respect: it will only warn you when you try to save the file, asking are you sure, whereas MacVim, and the XCode editor, will warn you each time you return to the file. If you do then each will give you a warning about the file being modified externally. Vim and XCode will co-exist quite well together provided that you aren't trying to edit the same files in Vim and the XCode editor at the same time. ![]()
0 Comments
Read More
Leave a Reply. |