I am using vim editor on Linux mint. I want to know if there is any way to compile c program without leaving the editor.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
There are several possibilities. One method is to compile using
But a nicer strategy would be to have a
Where the easiest
|
|||||||||||||
|
|
The canonical way to do this in Vim is to use the compiler configuration setting. Your vim installation almost certainly comes with a compiler plugin for gcc. Type To associate gcc with c source files, you need something like this in your .vimrc:
|
|||||||
|
