Quote:
Uh, VIM is a text editor, not a compiler
|
Uh, vim is actually a full-blown IDE.
If the Makefile is working you should be able to just type :make in vim to compile it. This of course assumes that your current working directory is the one where the Makefile is located (this works just fine for me, I just verified it with a simple program). The error message seems to hint at you might not be in that directory.
To set the compiler and options for a simple c file (as an example), try this:
:set makeprg=gcc\ -Wall\ -o\ outname\ %
The backslashes are necessary to escape the spaces, and the % character refers to the filename you are currently editing. So The above translates to
gcc -Wall -o outname whatever.c.
When you have set your makeprg as you wish you can compile using
make and show the error list with
:cl, hop to the next error line using
:cn and so on.
Hope that helps.
Håkan