getquickfix list, pattern

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

getquickfix list, pattern

cyboman
help for getquickfixlist says that the pattern entry is the search
pattern used to locate the error. i echoed it into a file and looked
at the value of the pattern and it is always empty.  when i read help
i thought pattern would be one of the values used in errorformat,
however as it seems it is not. how is this possible? and why pattern
is empty?

any help is appreciated

--
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
Reply | Threaded
Open this post in threaded view
|

Re: getquickfix list, pattern

cyboman


On Jun 14, 3:53 pm, cyboman <[hidden email]> wrote:
> help for getquickfixlist says that the pattern entry is the search
> pattern used to locate the error. i echoed it into a file and looked
> at the value of the pattern and it is always empty.  when i read help
> i thought pattern would be one of the values used in errorformat,
> however as it seems it is not. how is this possible? and why pattern
> is empty?
>
> any help is appreciated

here is my erroformat:

set errorformat=\"%f\"\\,%l%\\s%\\+%t%\\a%\\+\ %n:\ %m " lint error/
warning/info
set errorformat+=%A%>%p~ " lint error/warning/info multiline start
set errorformat+=%C\"%f\"\\,%l%\\s%\\+%t%\\a%\\+\ %n:\ %m,%Z " lint
multiline later
set errorformat+=\"%f\"\\,%l%\\s%\\+%t%\\a%\\+%m " compiler error/
warning/info
set errorformat+=%A%\\s%\\{2}%>%p^ " compiler error/warning/info
multiline start
set errorformat+=%C\"%f\"\\,%l%\\s%\\+%t%\\a%\\+%m,%Z " compiler error/
warning/info later
set errorformat+=%t%\\a%\\+\[%.%n\]:\ %m " linker error
set errorformat+=%t%\\a%\\+%m\(\ %f\ \) " linker error/warning/info
with a file

--
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
Reply | Threaded
Open this post in threaded view
|

Re: getquickfix list, pattern

Lech Lorens
On Jun 14, 10:01 pm, cyboman <[hidden email]> wrote:
> On Jun 14, 3:53 pm, cyboman <[hidden email]> wrote:
>
> > help for getquickfixlist says that the pattern entry is the search
> > pattern used to locate the error. i echoed it into a file and looked
> > at the value of the pattern and it is always empty.  when i read help
> > i thought pattern would be one of the values used in errorformat,
> > however as it seems it is not. how is this possible? and why pattern
> > is empty?

I believe that it is the pattern that results from the %s conversion
in
the errorformat which is described under ":help error-file-format".

HTH,
Lech

--
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