擅长:python、mysql、java
<p><a href="http://singlecompile.topbug.net" rel="nofollow">http://singlecompile.topbug.net</a>似乎比你想要的做得更多。对于更简单的解决方案,您也可以将以下内容添加到vimrc中</p>
<pre><code>au BufEnter *.cpp set makeprg=g++\ -g\ %\ -o\ %<
au BufEnter *.c set makeprg=gcc\ -g\ %\ -o\ %<
au BufEnter *.py set makeprg=python\ %
au BufEnter *.[rR] set makeprg=Rscript\ %
map <F5> :call CompileGcc()<CR>
func! CompileGcc()
exec "w"
silent make
endfunc
</code></pre>
<p>高温高压</p>