blob: a098e184998aad8a8dd0497fc6032cdc11c1b754 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
if executable('gtags-cscope')
let &csprg='gtags-cscope'
endif
set cscopequickfix=g-,s-,c-,d-,i-,t-,e-
set cscopetag
set cscoperelative
nmap <leader>css :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <leader>csg :cs find g <C-R>=expand("<cword>")<CR>
nmap <leader>csc :cs find c <C-R>=expand("<cword>")<CR>
nmap <leader>cst :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <leader>cse :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <leader>csf :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <leader>csi :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <leader>csd :cs find d <C-R>=expand("<cword>")<CR>
nmap <leader>csa :cs find a <C-R>=expand("<cword>")<CR>
nmap <leader>cs<space> :cs find<space>
if has('cscope')
let tagfile = findfile("GTAGS", ".;")
if filereadable(tagfile)
exec "cs add" tagfile
endif
endif
|