blob: f08009eb90350d0d29873a99456217495e04ebae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
setl cin cino+=:0,(s,l1
if has('cscope')
if filereadable("cscope.out")
cs add cscope.out
endif
nnoremap [cscope] <Nop>
nmap <C-\> [cscope]
nmap [cscope]s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap [cscope]g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap [cscope]c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap [cscope]t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap [cscope]e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap [cscope]f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap [cscope]i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap [cscope]d :cs find d <C-R>=expand("<cword>")<CR><CR>
endif
|