问题
I am new to the text editor Vim. I want to use it for programming
C. I am using Windows and the bcc32
compiler from Borland.
I cannot seem to get my C code to compile.
I think something is wrong with my setup. Can someone give step by step information
on how to setup Vim for compiling using BCC?
回答1:
I've not used the bcc32 compiler, but I'm assuming it uses a different make tool than make
. You'll need to put:
set makeprg=<make command>
Somewhere in your .vimrc
file.
回答2:
A Google search of vim and bcc led me to this page.
http://ftp.nluug.nl/vim/runtime/compiler/bcc.vim
You'll have to place this bcc.vim in the ~/vimfiles/compiler directory
来源:https://stackoverflow.com/questions/1153768/how-can-i-configure-vim-to-compile-c-code-using-borlands-compiler-on-windows