Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace the :make command with a custom script in vim

I use MacVim as my editor within Xcode. By default Command-B and :make are bound to call 'make' from the command line. As we're using Xcode for building and project configuration, I'd like to replace the :make/Command-B calls to make with an applescript command. Is this possible, and how would I go about doing it?

like image 943
Grant Limberg Avatar asked Apr 30 '09 23:04

Grant Limberg


2 Answers

Try :help makeprg

You use :set makeprg=xxx to change the command that is executed.

like image 152
DanM Avatar answered Nov 09 '22 23:11

DanM


In order to run an XCode build from CLI, the command is xcodebuild. I have never tried it inside vim, though.

like image 1
riko Avatar answered Nov 10 '22 01:11

riko