Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use MinGW make with Vim on Windows

I have installed Vim and MinGW on my machine, so I try to create Hello World then compile in in Vim and everything work fine. However when I type :make it show error 'make' not recognized as an internal or external command.

I already added variable path to C:\MinGW\bin. I want to know how to configure Vim or my machine to allow make command.

like image 666
Anonymous Avatar asked Mar 11 '10 08:03

Anonymous


1 Answers

Can you confirm that there is a make.exe in C:\MinGW\bin? I seem to remember that last time I installed mingw, it was called mingw32-make.exe.

If there is no make.exe but there is a mingw32-make.exe, you'll have to change the 'makeprg' option:

:set makeprg=mingw32-make
:make
like image 129
DrAl Avatar answered Sep 21 '22 13:09

DrAl