How can I configure Vim to compile C code using Borland's compiler on Windows?

浪尽此生 提交于 2019-12-02 08:04:36

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!