> 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.
if i have my settings as
set shellredir=>%s\ 2>&1
nmap <S-F11> :cd src<cr>:make all<cr>:cd ..<cr>:copen<cr><cr>
nmap <A-F11> :cd src<cr>:make rebuild<cr>:cd ..<cr>:copen<cr><cr>
nmap <S-F12> :cd src<cr>:make final<cr>:cd ..<cr>:copen<cr><cr>
the window with QuickFix list opens and i can navigate through the
errors. however the error file is not saved. does anybody know what is
the issue?
--
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:
Post a Comment