Does cscope support history list recording?

泪湿孤枕 提交于 2019-12-07 23:33:35

问题


I use < C-\ >C to get the callers of one function, then I can press one number to jump to one caller. But if I want to jump to another caller, I had to press < C-T> to jump back, and press < C-\ >C again to get the caller list. Does cscope support history list recording ?


回答1:


If you are using VIM, you can try quick fix

:se cscopequickfix=s-,c-,d-,i-,t-,e-

Navigate next or previous result with :cn :cp

Use :cw to display cscope search result.




回答2:


For one thing, you can use

:se cscopetag

or

:lcscope ....
:lopen

With the latter you can even use :lolder and :lnewer to switch back and forth between previous cscope queries.

he cscopetag:

If 'cscopetag' set, the commands ":tag" and CTRL-] as well as "vim -t" will always use |:cstag| instead of the default :tag behavior. Effectively, by setting 'cst', you will always search your cscope databases as well as your tag files. The default is off. Examples:

:set cst
:set nocst

That way you you just

:tnext
:tprev

like always.

Alternatively, you can use




回答3:


I have no real experience with cscope but take a look at :help cscopequickfix: with this option set the <C-\>c results are supposed to appear in the quickfix window.



来源:https://stackoverflow.com/questions/8206985/does-cscope-support-history-list-recording

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!