Before issuing :cfile
or
:lfile
command, please use
:compiler! quickfix
quickfix.vim [1] is assumed to be placed into ~/.vim/compiler
Anton.
[1] ~/.vim/compiler/quickfix.vim
" Vim compiler file
" Compiler: Quickfix-list errorformat
" Maintainer:
" Latest Revision: 2008-09-10
if exists("current_compiler")
finish
endif
let current_compiler = "quickfix"
let s:cpo_save = &cpo
set cpo-=C
CompilerSet errorformat=
\%-G%f:%l:\ All\ of\ '%#%.depend'%.%#,
\%f%.%l\ col\ %c%.\ %m
let &cpo = s:cpo_save
unlet s:cpo_save
2008/10/9, A. S. Budden <[EMAIL PROTECTED]>:
>
> Dear all,
>
> Is there any way to save an error list that has been generated with a
> lot of calls to :vimgrepadd? I've built up a list of lines of source
> that I will need to reference later and would prefer to not have to go
> through the rigmarole again.
>
> In the quickfix.txt help, it includes the comment (somewhat out of context):
>
> "you could write the contents of the quickfix window to a file and use
> ":cfile" to have it parsed and used as the new error list."
>
> In order to do this, I tried using ":w myquickfixfile.vim", starting a
> new gVim and running ":cfile myquickfixfile.vim", ":copen". The
> quickfix lists opens and all the lines appear, but they're not
> recognised as error lines (no syntax colouring) and if you press enter
> on one of the lines, the source doesn't jump to that line (although
> the line is then highlighted in yellow).
>
> Can anyone suggest what I might be doing wrong?
>
> Many thanks,
>
> Al
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
quickfix.vim
Description: Binary data
