如何在Windows上的Vim中使用MinGW make [英] How to use MinGW make with Vim on Windows
问题描述
我已经在计算机上安装了Vim和MinGW,因此我尝试创建Hello World,然后在Vim中进行编译,一切正常.但是,当我键入:make
时,它显示错误'make' not recognized as an internal or external command
.
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
.
我已经将变量路径添加到了C:\MinGW\bin
.我想知道如何配置Vim或我的机器以允许make
命令.
I already added variable path to C:\MinGW\bin
. I want to know how to configure Vim or my machine to allow make
command.
推荐答案
您可以确认C:\MinGW\bin
中是否存在make.exe
吗?我似乎记得上次安装mingw的时候叫它mingw32-make.exe
.
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
.
如果没有make.exe
但有mingw32-make.exe
,则必须更改'makeprg'
选项:
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
这篇关于如何在Windows上的Vim中使用MinGW make的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!