Skip to content

cscope does not work when open a file from startify #543

@zaiqiang-dong

Description

@zaiqiang-dong

cscope does not work when open a file from startify, show Error "Type number and (q or empty cancels): 1E429: File "include/linux/mm.h" does not exist"

as follow:
https://github.com/zaiqiang-dong/misc/898eedc33cee488ea613b01b12d28c3c160f0989/termtosvg_3w1o_9oc.svg

cscope config in init.vim as follow:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" cscope setting
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if has("cscope")
set csto=1
set cst
set nocsverb
" add any database in current directory

set tags=tags;
if filereadable("cscope.out")
cs add cscope.out
else
let cscope_file=findfile("cscope.out",".;")
let cscope_pre=matchstr(cscope_file,".*/")
if !empty(cscope_file)&&filereadable(cscope_file)
exe "cs add" cscope_file cscope_pre
endif
endif
set csverb
endif
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Ctags_Cmd="/usr/bin/ctags"
let Tlist_Auto_Open=1
"set cscopequickfix=s-,c-,d-,i-,t-,e-

nmap cs :cs find s =expand("")
nmap cg :cs find g =expand("")
nmap cc :cs find c =expand("")
nmap ct :cs find t =expand("")
nmap ce :cs find e =expand("")
nmap cf :cs find f =expand("")
nmap ci :cs find i =expand("")$
nmap cd :cs find d =expand("")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions