title: compile directly from vim
body: <p>I'd like to compile cpp file w/o turning off vi.<br>
  I know the <strong>:!g++ file.cpp</strong> but I prefer <strong>:make</strong> so I added this line in .vimrc file<br></p>
  
  <blockquote>
    <p>au FileType C set makeprg=gcc\ %<br>
    au FileType Cpp set makeprg=g++\ %</p>
  </blockquote>
  
  <p>but I keep getting <br>
  "make: ***** No targets specified and no makefile found.  Stop.** "message.<br>
  can anyone tell me what is wrong with my setting?<br>
  I use to compile successfully with the option above.</p>