aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/cscope.vim
blob: 8215e1da2a8bef50e3be21c2ec0158d32973397e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set cscopequickfix=s-,c-,d-,i-,t-,e-
set cscopetag

nmap <leader>css :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <leader>csg :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <leader>csc :cs find c <C-R>=expand("<cword>")<CR><CR> :copen<CR>
nmap <leader>cst :cs find t <C-R>=expand("<cword>")<CR><CR> :copen<CR>
nmap <leader>cse :cs find e <C-R>=expand("<cword>")<CR><CR> :copen<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><CR>
nmap <leader>csa :cs find a <C-R>=expand("<cword>")<CR><CR>

nmap <leader>cs<space> :cs find<space>