Saturday, 25 April 2009

MacVim and XCode

XCode no longer automatically launches MacVim to edit my files. However, this actually forced me to find what I think is a better solution. :)

All you need to do is open-up MacVim and XCode; and drag any files you want to edit from the XCode project window file list, on to MacVim. The file you drag-across opens automatically in a new tab for editing under MacVim. Really easy!

Even more easily: if you are editing a file in XCode, and don't want the hassle of first searching for it in the project file list in order to drag it to XCode; simply right-click on the XCode editor window, select the option to Reveal in Finder, and then right-click on the file in the Finder window and select the option to edit with ...



Or you could just assign MacVim as the editor in the Xcode's file associations.

Or use :cd [project dir]|:e [filename].


Pete Cole said...

The problem is that XCode simply ended-up forgetting about the file association. :)

Never mind, at least I can use XCode and MacVim together really well now. Lets hear it for Vim. :)