Thursday, March 21, 2013

Re: open quickfix windows after csope and jump

On 2013-03-21, FlashBurn wrote:
> On Thursday, March 21, 2013 1:24:12 PM UTC-4, Gary Johnson wrote:

> > However, I also skimmed quickfix.txt and found that the command
> > ".cc" should also work, and it worked for me, so try
> >
> > .cc
> >
> > where you now have
> >
> > normal "\<cr>"

> Gary it worked. But I didn't use normal ".cc", I simply used cc
> instead.

Right. That's why I wrote it out as I did. I didn't write

normal ".cc"

I wrote

.cc

> Here is how it looks
>
> function! CscopeFind(action, word)
> try
> exe ':cs f '.a:action.' '.a:word
> copen
> cc
> catch
> echohl WarningMsg | echo 'Can not find '.a:word.' with querytype as '.a:action.'.' | echohl None
>
> I'm also wondering if the dot (.) in front of a cc in your
> response is a type, or Vim has special meaning for it

To be honest, I don't know why the . is needed either, but
paragraph in quickfix.txt (beginning at line 353) began

In the quickfix window, each line is one error. The line number
is equal to the error number. You can use ":.cc" to jump to the
error under the cursor.

so that's what I tried, it worked, and so that's what I suggested to
you.

Regards,
Gary

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: