72430Re: [PATCH] makeprg for gcc
- Jul 23, 2013On 2013-07-23, Dimitar DIMITROV wrote:
> Hi,For C programs, 'makeprg' should not be gcc, it should be make. The
> Found that many default compiler plugins lacked the makeprg setting.
> I basically opened a perl file, then a c file and tried to compile it with :mak
> and it tried to use perl -c
> this patch fixes it for gcc:
> *** gcc.vim 2013-07-23 12:32:14.000000000 +0100
> --- /tmp/gcc.vim 2013-07-23 12:32:08.453563055 +0100
> *** 11,16 ****
> --- 11,17 ----
> let s:cpo_save = &cpo
> set cpo&vim
> + CompilerSet makeprg=gcc\ %\ $*
> CompilerSet errorformat=
> \%*[^\"]\"%f\"%*\\D%l:%c:\ %m,
> \%*[^\"]\"%f\"%*\\D%l:\ %m,
makefile specifies the compiler and how it is to compile the
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>