PDA

View Full Version : Question about quickfix in VIM



leileicats
February 9th, 2008, 09:36 PM
Hey, I am using VIM for coding.

Now I have a directory ~/test and I have files test.cpp and Makefine there.

I know if I modify ":set makeprg=g++\ -o\ test\ ~/test/test.cpp" in VIM. It could compile my code. But I think it is pretty lousy, could I modify and execute the Makefile in the directory directly? If so, how could do that? I don't want to bother to open a terminal and key in:
$ cd test
$ make
something like that.