What is the best way to set makeprg=xcodebuild
in vim?
I'm using filetype line in files to indicate that the file is objective-c (as opposed to matlab or cpp) by setting up the first line of my file to:
/* vim: set filetype=objc : */
and having this in vimrc:
set modelines=1
I would probably want to use :mak
to run this command in the current directory:
xcodebuild -activetarget -activeconfiguration
I usually end up setting manually xcodebuild
as makeprg
so that I can do :mak
to compile.
I'm always in the project root directory where I have .xcodeproj
files so I don't have to worry about searching for project files.
What's the best way to setup makeprg
? Ftplugin
? Compiler
plugin?
Any ideas appreciated.