prevent automatic jumping when using quickfix for cscope commands

610 views
Skip to first unread message

EdwardXu

unread,
Aug 24, 2010, 9:59:28 PM8/24/10
to vim...@googlegroups.com
Hi, all,
I use quickfix for the output of cscope commands by setting cscopequickfix, it seems vim always jump to the first matched result automaticly which is mostly not the symbol i'm searching for.
How to just put the results into quickfix windows without jumping to the first matched result?

--
Thanks & Best Regards
Edward

Ben Fritz

unread,
Aug 25, 2010, 9:53:20 AM8/25/10
to vim_use


On Aug 24, 8:59 pm, EdwardXu <edwardxuhui19...@gmail.com> wrote:
> Hi, all,
> I use quickfix for the output of cscope commands by setting cscopequickfix,
> it seems vim always jump to the first matched result automaticly which is
> mostly not the symbol i'm searching for.
> How to just put the results into quickfix windows without jumping to the
> first matched result?
>

You can't currently. Maybe you could make a mapping to call your
Cscope search, then return to the last place in the jump list.

I just let it jump, then open the quickfix window and find the result
I really want.

There was a patch to Vim's C code posted some time ago for adding this
functionality, but I don't know what became of it.

swapnil

unread,
Jun 10, 2013, 9:29:26 AM6/10/13
to vim...@googlegroups.com, edwardxu...@gmail.com
Hi,
This seems to be a bit older thread, but I am looking for the same this.

Is there a support for this now. Can I stop the autojump to first search result in quickfix window of cscope ?

Thanks
Swapnil

Ronak Gandhi

unread,
Apr 22, 2016, 2:57:50 PM4/22/16
to vim_use, edwardxu...@gmail.com
I wrote a plugin that achieves this behavior.

https://github.com/ronakg/quickr-cscope.vim

-Ronak
Reply all
Reply to author
Forward
0 new messages