summaryrefslogtreecommitdiffstats
path: root/vim/ftplugin/c.vim
blob: f3f7198586f257f758158550c5dde90a53728269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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