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.
Do you have autochdir enabled? That may change to another directory.
Check with :pwd
to see if the current directory is what you expect.
Try running :!ls
to see if the Makefile exists.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With