Wednesday, May 18, 2011

Re: error file for quick fix

On 2011-05-18, cyboman wrote:
> On May 17, 4:02 pm, Gary Johnson <garyj...@spocom.com> wrote:
> > On 2011-05-17, cyboman wrote:
> > > On May 11, 9:29 am, Ben Schmidt wrote:
> > > > On 11/05/11 11:11 PM, cyboman wrote:
> >
> > > > > i have the following settings in my _vimrc for make
> >
> > > > > set makeef=error.err " the errorfile for :make and :grep
> > > > > set makeprg=gmake.exe\ --win32
> > > > > set errorformat=%f\(%l\)\ :\ %m,%C\ \ %p^\,%C%p~,%A\"%f\"\\,%l%m\,%C%m
> > > > > \,%Z
> >
> > > > > unfortunately i'm not able to find theerror.errfileafter
> > > > > compilation. can someone help me out? where does vim storeerror.err
> > > > >file?
> >
> > > > It is deleted.
> >
> > > > :help :make
> >
> > > > Step 8.
> >
> > > > Ben.
> >
> > > does anybody know of a way of saving thisfile, without telling
> > > vim :saveas or :write. make mappings as follows
> > > nmap <S-F11> :cd src<cr>:make all<cr>:cd ..<cr>:copen<cr>
> > > nmap <A-F11> :cd src<cr>:make rebuild<cr>:cd ..<cr>:copen<cr>
> > > nmap <S-F12> :cd src<cr>:make final<cr>:cd ..<cr>:copen<cr>
> >
> > > thefileis not saved after i close thequickfixlist window. it
> > > would be nice to have the ability to save the output to afile
> > > automatically and then overwrite it every time there is a recompile.
> > > so i could read it later if needed. does anybody have any suggestions?
> >
> > You could change 'shellpipe', 'makeprg' or the program named by
> > 'makeprg', depending on the facilities available from your OS, to
> > save a copy of theerrorfilesomeplace.  You can then load this
> > copy any time using the :cfile command.
> >
> > Regards,
> > Gary
> i'm using WinXP.
>
> if have the following settings in my _vimrc
>
> set shellredir=>%s\ 2>&1
> nmap <S-F11> :cd src<cr>:make all<cr>:cd ..<cr>
> nmap <A-F11> :cd src<cr>:make rebuild<cr>:cd ..<cr>
> nmap <S-F12> :cd src<cr>:make final<cr>:cd ..<cr>
>
> and then do :copen, the file is saved and i can see it in my NerdTree
> plugin.

I'm not seeing that.

I made those settings and typed <S-F11>. This appeared at the bottom
of the screen:

:!make all >C:\DOCUM~1\username\LOCALS~1\Temp\VIe2734.tmp 2>&1
(1 of 1): "making something"
:cd ..
Press ENTER or type command to continue

I opened Windows Explorer and looked in that Temp directory. There
was no VIe2734.tmp file there. I executed :copen. Still no
VIe2734.tmp file.

That's what I would expect given Ben's reply.

I was using Vim 7.3.138 on Windows XP.

Regards,
Gary

--
You received this message from the "vim_use" 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

No comments: