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.
sconsvim
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.
Best Answer
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 usemake
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.