开发者

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.


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜