???????
????????????????????????????????飬??????????????????????.???????:????????????????????????????
??????Windows????sourceinsight????????????(???????ù????????????????????)???????????Linuxer???????????Windows????????????????Linux??????????????.
????????????????????Linux????????????.
????vim+ctags+cscope
????????????????.vim???ctags??cscope???????????????????????裬???????????????????.
???????
????sudoapt-getinstallvimctagscscope
???????
????vim
????vim??????????????????????????????????????δ????????д??vim???????á????????????Vim???????????????????????.
????ctags
????ctags????ú????vim??????????ctags?????
?????????????????????ctags-R????????????tags????????????????Tags???????????????????????tag?????????
?????????????????????Ctrl+]????????????崦
????Ctrl+t???????????????λ??
??????????????ctags????????????????????????????ctags????е??????????????????λ????????.
????cscope
????vim??????????cscope?????.
?????????????????????cscope-Rbq????????cscope.out???(?????????)
????-R:???????????????????????????е????
????-b:????????????????????cscope?????
????-q:????cscope.in.out??cscope.po.out????????cscope?????????
?????????vim?????:csaddcscope.out??????????.
?????????????????:csfindxvar???в???.(x?????????var???????????????????)
????cscope???8???????
????s:????C???????????????????????????????????
????g:???????????????????λ???????ctags?????????
????d:?????????????????
????c:?????????????????
????t:??????????????
????e:????egrep????????egrep??????????????????
????f:????????????????vim??find????
????i:?????????????????
???????磬????????vim7.0????????в??????do_cscope()??????????????????????”:csfindcdo_cscope“??????????????????????????????к???????do_cscope()????????????”:csfindsdo_cscope“?????????C????????λ???????vim?г??????????????????λ?á?
??????ζ???????csfind????????????????е??鷳??????и???????????.????У?vim???????????????????.?????cscope??????????????.vimrc?м???.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"cscopesetting
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
ifhas("cscope")
setcsprg=/usr/bin/cscope
setcsto=1
setcst
setnocsverb
"addanydatabaseincurrentdirectory
iffilereadable("cscope.out")
csaddcscope.out
endif
setcsverb
endif
nmap<C-@>s:csfinds<C-R>=expand("<cword>")<CR><CR>
nmap<C-@>g:csfindg<C-R>=expand("<cword>")<CR><CR>
nmap<C-@>c:csfindc<C-R>=expand("<cword>")<CR><CR>
nmap<C-@>t:csfindt<C-R>=expand("<cword>")<CR><CR>
nmap<C-@>e:csfinde<C-R>=expand("<cword>")<CR><CR>
nmap<C-@>f:csfindf<C-R>=expand("<cfile>")<CR><CR>
nmap<C-@>i:csfindi^<C-R>=expand("<cfile>")<CR>$<CR>
nmap<C-@>d:csfindd<C-R>=expand("<cword>")<CR><CR>
????????????ü???Ctrl+@???:csfind??????????????????????????????????????????????????Ctrl+@+s?????????????????.????????????????????????????????????????.
???????????????????????????д??cscope??????÷????????????????????????÷??ο????????vi/vim??y???:???????????–cscope