Nathan Huesken wrote:
> Hi,
> 
> OK ... the problem is, that I do not want to use vims internal quickfix
> buffer but the one from exVim. At the same time I do not want to use
> exVims build tools (because I want my self-written makefile).
> So exVims Quickfix needs the make output.
> 
> Can I somehow reconfigure vim so, that the :make output is saved to some
> file?

Nathan,
Yes, you could do something like this...

set makeprg=make\ 2>&1\\\|tee\ /tmp/my_errors.out


...which uses 'tee' to put the errors into a file Vim will know nothing 
about. Of course, Vim will still read the errors via the stdout of tee. 
Note that the 2>&1 is required, since otherwise, the tee program would 
never see the errors...

:help makeprg

Brett Stahlman

> 
> Thanks!
> Nathan
> 
> On Sun, Oct 04, 2009 at 07:25:04AM -0500, Stahlman Family wrote:
>>
>> Nathan Huesken wrote:
>>> Hi,
>>>
>>> When I issue :make in my projects root, I can see by te console output, 
>>> that it should generatate a errorfile (using tee). But when I try to open 
>>> this file, it does not exist. I tried to set makeef to different files, non 
>>> is created.
>>>
>>> Any hints why?
>> Nathan,
>> The error file is used only as temporary storage for the output of the 
>> make command. After Vim has parsed the errors according to 
>> 'errorformat', the error file is deleted. If you don't set 'makeef', 
>> Vim will use an internally generated tempfile, so you really shouldn't 
>> have to set this option. The steps are described in detail in the Vim help:
>>      
>>      :help make_makeprg
>>
>> To view the results of the make, jump to errors, etc..., use the various 
>> "quickfix" commands. E.g.,
>>
>> :clist lists the errors with the internal pager
>> :copen opens a window displaying the errors
>> :cc [nr] displays (jumps to) the specified error.
>>
>>      :help quickfix
>>
>> Hope it helps...
>> Brett Stahlman
>>
>>> Thanks!
>>> Nathan
>>>
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to