On 2008-10-23, Chris Jones <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 23, 2008 at 12:15:04PM -0700, Gary Johnson wrote:
> > The other way is to run make in the background and redirect its
> > output to a file. When it's done, read that file into your quickfix
> > buffer with a command such as :cf. See
>
> This to me seems ideal. I mucked around with it and the make parameters
> trying to get this done using :set shellpipe and :set makeef
>
> set shellpipe=\2\>\&\1\>
> set makeef=/tmp/foo.error
>
> :make -j4&
>
> ... trouble is stuff still gets output to the screen... it is very odd.
>
> If I could just get that to go away... I'd be fine.
>
> Let me know if you have any more ideas. Alos, any idea how I would know
> when the make had finished using this method?
There are probably ways to set 'shellpipe', etc. so that the output
of make would not go to the screen. However, since you are not
going to be using any of the features of the :make command anyway, I
think it would be much easier to write a shell script to execute
your make command, or just run the make command from the vim command
line like this:
:!make > make.out 2>&1 &
One way to know when it's done is (assuming you're running X) to
follow the make command with an xmessage command and put them
together in the background, like this:
:!{ make > make.out 2>&1; xmessage 'make done'; } &
HTH,
Gary
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---