Hi,

On 9/5/06, Sibin P. Thomas <[EMAIL PROTECTED]> wrote:
Hi,

Could someone let me know how to quickly compile my current buffer? I want a
key map like
nmap <F5> "xxxxx" to do --> gcc -o current_file.o current_file.c


Try using the following command:

     nnoremap <F5> :!gcc -o %:p:r.o %<CR>


also another map to make an executable, like
nmap <F5> "xxxxx" to do --> gcc -o current_file current_file.c


Try using the following command:

      nnoremap <F5> :!gcc -o %:p:r %<CR>


Also it would be convenient if this command could give a list of errors like
:make.


To use make and jump to compile-time errors, try the following command:

   set makeprg=gcc\ -o\ %<\ %

- Yegappan

Reply via email to