If you use set makeprg=gcc\ -o\ %<\ % in your vimrc, and your actual file is file.c, then :make will compile file.c with the output file. (gcc file.c -o file). If you use GNU make the above change is not required. Instead, simply use the following command to compile the current file (you need to save it first): :make %:r When using other compilers, like Sun cc, you can adapt the tip to suit your compiler.
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
Version |
|
dbkwik:vim/property/wikiPageUsesTemplate | |
Previous |
|
Category |
|
Author |
|
Complexity |
|
Created |
|
ID |
|
NEXT |
|
Rating |
|
abstract |
|