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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With