Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set ":make" to use scons?

Tags:

vim

scons

I know there is a way to make vim run scons instead of make when I press :make.

I had an option that did this in my ~/.vimrc but I removed it a while ago and forgot what it was.

like image 687
Isaiah Avatar asked Nov 20 '09 00:11

Isaiah


1 Answers

I had the same problem this weekend. I didn't want to type :set makeprg=scons every time I started Vim or hard-code 'makeprg' in my .vimrc, because I use make for some projects, maven for others, rake..., et cetera ...

So today I wrote a Vim plugin called Makeshift to determine what to call for :make by looking for known files (Makefile, SConstruct, pom.xml, ...) and setting 'makeprg' accordingly.

Details are on vim.org for DoR and future visitors to this question.

like image 151
Johnsyweb Avatar answered Oct 25 '22 12:10

Johnsyweb