--- /dev/null
+" Make sure that vim was compiled with the '--enable-cscope' option
+if has("cscope")
+ set cscopetag
+
+ " check cscope for definition of a symbol before checking ctags
+ set csto=0
+
+ " add any cscope database in current directory
+ if filereadable("cscope.out")
+ cs add cscope.out
+ endif
+
+ " show msg when any other cscope db added
+ set cscopeverbose
+
+ nmap \s :cs find s <C-R>=expand("<cword>")<CR><CR>
+ nmap \g :cs find g <C-R>=expand("<cword>")<CR><CR>
+ nmap \c :cs find c <C-R>=expand("<cword>")<CR><CR>
+ nmap \t :cs find t <C-R>=expand("<cword>")<CR><CR>
+ nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR>
+ nmap \f :cs find f <C-R>=expand("<cfile>")<CR><CR>
+ nmap <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
+ nmap \d :cs find d <C-R>=expand("<cword>")<CR><CR>
+endif