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?
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php