gvim :make command does not work

c++, makefile, vim

Solution

Can you check the following options?

:set shell?
:set shelltype?

Finally, check the contents of your shell login file. For example, if your shell is bash, check `~/.bashrc`. Does this file contain something like the following?

cd ~

Or:

cd /home/${USERNAME}

where `${USERNAME}` is (obviously) your username.

Problem

I am under a Unix environment, working in C++. I'm opening gvim from a directory in which a makefile called "Makefile" exists. When I try to use ":make" from within vim, I get: shell returned 2 (1 of 1): make: *** No targets specified and no makefile found. Stop.

Original source