> I use C. Campbell's cecscope.vim script -- a nice improvement of vim's
> cscope support. The CSL command contains script code that sets the
> quickfix errorformat to parse the output of a cscope search. The error
> format doesn't always work for me. Usually the cscope search produces
> this output:
> 56 175 c:\foo.c <<foo_function>>
> some_symbol = 5;
> The script sets the errorformat as follows to match it:
> setlocal efm=%I\ %#%\\d%\\+\ %#%l\ %#%f\ %m
> which matches and produces a proper quickfix list entry for this example
> that looks like:
> c:\foo.c|175| <<foo_function>> some_symbol = 5;
> But I find that if the cscope search output is wider than my window
> width, then cscope will wrap the line to produce
> 56 175 c:\really_long_path\...\foo.c
> <<foo_function>>
> some_symbol = 5;
> The above error format will not match this.
> How can I fix the error format to match both the two line and three line
> output cases?
In my experience, with an appropriate 'cscopequickfix' setting (I use
the one in the help; YMMV), you don't need to set a specific
'errorformat'. For details, see
:help csqf
http://vim.wikia.com/wiki/Cscope
Best regards,
Tony.
--
How come wrong numbers are never busy?
--
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
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment