vim+ctag+cscope

50 ” Source a global configuration file if available
51 if filereadable(“/etc/vim/vimrc.local”)
52 source /etc/vim/vimrc.local
53 endif
54
55 ” Configuration for ctags.
56 set number
57 set tags=tags;
58 set autochdir
59
60 ” Configuration for taglist.
61 let Tlist_Show_One_File=1
62 let Tlist_Exit_OnlyWindow=1
63
64 ” Configuration for cscope.
65 set cscopequickfix=s-,c-,d-,i-,t-,e-
66 if has(“cscope”)
67 set csprg=/usr/bin/cscope
68 set csto=0
69 set cst
70 set nocsverb
71 ” add any database in current directory
72 if filereadable(“cscope.out”)
73 cs add cscope.out
74 ” else add database pointed to by environment
75 elseif $CSCOPE_DB != “”
76 cs add $CSCOPE_DB
77 endif
78 set csverb
79 endif
80
81 ” Other setting.