vim 관련 설정 (.vimrc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb

if filereadable("./cscope.out")
    cs add cscope.out
endif
set csverb

nmap ,cs :cs find s <C-R>=expand("<cword>")<CR><CR>     
nmap ,cg :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap ,cd :cs find d <C-R>=expand("<cword>")<CR><CR>
nmap ,cc :cs find c <C-R>=expand("<cword>")<CR><CR>

  cscope 사용법
:cs find {질의 종류} {심볼}

질의 종류
s   : Find this C symbol
g   : Find this definition
d   : Find functions called by this function
c   : Find functions calling this function
t    : Find assignments to
e   : Find this egrep pattern
f    : Find this file
i    : Find files #including this file

+ Recent posts