cscope와 ctags 설치
$ sudo apt-get install exuberant-ctags
$ sudo apt-get install cscope
cscope 데이터 베이스 만들기 스크립트
# mkcscope.sh
#!/bin/bash
rm -vrf cscope.files cscope.out
find ./ \
-name "*.cpp" -o \
-name "*.CPP" -o \
-name "*.c" -o \
-name "*.C" -o \
-name "*.h" -o \
-name "*.H" -o \
-name "*.mm" -o \
-name "*.MM" -o \
-name "*.ac" -o \
-name "*.am" -o \
-name "*.s" -o \
-name "*.S" > cscope.files
cscope -b -v -i cscope.files
ctags 데이터 베이스 만들기 스크립트
# mkctags.sh
#!/bin/bash
ctags -RV --fields=+Kl
.
'Linux > vim' 카테고리의 다른 글
| [vim] C언어 #ifdef (0) | 2024.02.03 |
|---|---|
| [vim] mark 설치 (형광펜 기능) (0) | 2024.02.03 |
| vim-highlighter 설치 (0) | 2024.02.03 |
| NERDTree, TagList, SourceExplorer 설치 (0) | 2024.02.03 |
| .vimrc 설정 파일 (0) | 2024.02.03 |