Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Kodak T-Max 100
- G28/2.8
- Mamiya 7
- FujiFilm C200
- Minolta TC-1
- Rollei35s
- M-Rokkor 40/2
- fujifilm velvia 50
- Contax G2
- FujiFilm GFX50s
- Leica M7
- 2018 미국출장
- GRD2
- 2019 유럽여행
- Hasselblad 500cm
- Minolta CLE
- 4870
- Nikon 28Ti
- Kodak 400TX
- cf80/2.8
- ZeissIkon ZI
- Kodak Ektar 100
- Kentmere 400
- cf50/4 fle
- Germany
- Kodak 5222
- cs50/2.5
- SONY A7
- kodak t-max 400
- N80/4
Archives
- Today
- Total
J 창고
vimrc 설정 본문
CScope 설정 DB 파일 만들기 위한 Script
/usr/sbin/mkscope.sh
1 2 3 4 5 6 | #!/bin/sh rm -rf cscope.files cscope.files find . \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files cscope -i cscope.files | cs |
Ctags
ctags -R ./*
VIM 기본 설정과 Ctags, CScope 사용을 위한 설정
~/.vimrc
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 | set nu set cindent set smartindent set hlsearch set autoindent set ts=4 set shiftwidth=4 set title set mouse=a map <F5> :TlistToggle<CR> "" 검색시 대소문자 구분하지 않음 set ignorecase "" 오류음 대신 비주얼밸 사용 set vb "" 프로그램 시작 시 플러그인 로드 set lpl "" 파일 종류를 자동으로 인식 filetype on "" tags 파일 위치 선언 set tags=./tags;/ "" cscope database path 설정 function! LoadCscope() let db = findfile("cscope.out", ".;") if (!empty(db)) let path = strpart(db, 0, match(db, "/cscope.out$")) set nocscopeverbose " suppress 'duplicate connection' error exe "cs add " . db . " " . path set cscopeverbose endif endfunction au BufEnter /* call LoadCscope() | cs |
Comments