forked from EDDI-RobotAcademy/E4DS-Linux-System-Programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
57 lines (57 loc) · 958 Bytes
/
Copy pathvimrc
File metadata and controls
57 lines (57 loc) · 958 Bytes
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
set tags=/root/compiler/gcc-4.5.0/tags
set smartindent
set tabstop=4
set shiftwidth=4
if version >= 500
func! Sts()
let st = expand("<cword>")
exe "sts ".st
endfunc
nmap ,st :call Sts()<cr>
func! Tj()
let st = expand("<cword>")
exe "tj ".st
endfunc
nmap ,tj :call Tj()<cr>
endif
set csprg=/usr/bin/cscope
set nocsverb
cs add /root/compiler/gcc-4.5.0/cscope.out
set csto=0
set cst
func! Css()
let css = expand("<cword>")
new
exe "cs find s ".css
if getline(1) == ""
exe "q!"
endif
endfunc
nmap ,css :call Css()<cr>
func! Csc()
let csc = expand("<cword>")
new
exe "cs find c ".csc
if getline(1) == ""
exe "q!"
endif
endfunc
nmap ,csc :call Csc()<cr>
func! Csd()
let csd = expand("<cword>")
new
exe "cs find d ".csd
if getline(1) == ""
exe "q!"
endif
endfunc
nmap ,csd :call Csd()<cr>
func! Csg()
let csg = expand("<cword>")
new
exe "cs find g ".csg
if getline(1) == ""
exe "q!"
endif
endfunc
nmap ,csg :call Csg()<cr>