mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

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

Open zaiqiang-dong opened 1 year ago

zaiqiang-dong commented 1 year ago

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://raw.githubusercontent.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("")