开发者

How to use MinGW make with Vim on Windows

开发者 https://www.devze.com 2022-12-23 01:36 出处:网络
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 inte

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

精彩评论

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

关注公众号