blob: b9ca444c25e50a218cce87b04d7f2597de63185d (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
"=======================================================================================================================
" CSCOPE: http://vim.wikia.com/wiki/Cscope
"=======================================================================================================================
augroup MAX_CSCOPE
if has('cscope') " compiled with cscope support?
set cscopetag " CTRL-] uses cscope first, then ctags
set cscopeverbose
if has('quickfix')
set cscopequickfix=s+,c+,d+,i+,t+,e+
endif
if has('menu')
1001menu &Cscope.find.c\ symbol
\<tab>s
\ :cscope find s <cword><:cR>
1001menu &Cscope.find.definition
\<tab>g
\ :cscope find g <cword><:cR>
1001menu &Cscope.find.functions\ called\ by\ this
\<tab>d
\ :cscope find d <cword><:cR>
1001menu &Cscope.find.functions\ calling\ this
\<tab>c
\ :cscope find c <cword><:cR>
1001menu &Cscope.find.text\ string
\<tab>t
\ :cscope find t <cword><:cR>
1001menu &Cscope.find.egrep\ pattern
\<tab>e
\ :cscope find e <cword><:cR>
1001menu &Cscope.find.this\ file
\<tab>f
\ :cscope find f <cword><:cR>
1001menu &Cscope.find.files\ including\ this\ file
\<tab>i
\ :cscope find i <cword><:cR>
1001menu &Cscope.find.places\ where\ this\ symbol\ is\ assigned\ a\ value
\<tab>a
\ :cscope find a <cword><:cR>
1001menu &Cscope.-Sep1-
\ :
1001menu &Cscope.create\ and\ add\ database
\ :cscope kill -1<CR>:execute '!find -type f -regex ".*\.\(c\\|h\\|cpp\\|cxx\\|hh\\|hpp\\|hxx\)$" <bar> cscope -i- -b -q -v'<CR>:cscope add .<CR>
1001menu &Cscope.-Sep2-
\ :
1001menu &Cscope.add\ \.
\ :cscope add .<CR>
1001menu &Cscope.show
\ :cscope show<CR>
1001menu &Cscope.reset
\ :cscope reset<CR>
endif
endif
augroup END " MAX_CSCOPE
|