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.
There are several possibilities.
One method is to compile using
But a nicer strategy would be to have a
Where the easiest
|show 1 more comment|
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: