What is the best way to install makeprg=xcodebuildin vim?
I use the filetype line in files to indicate that the file is objective-c (unlike matlab or cpp), setting 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 :makto run this command in the current directory:
xcodebuild -activetarget -activeconfiguration
I usually set manually xcodebuildhow makeprgso that I can do :makfor compilation.
I am always in the root directory of the project where I have the files .xcodeproj, so I donโt have to worry about finding the project files.
What is the best way to customize makeprg? Ftplugin? Compilerplugin?
Any ideas appreciated.