현재 내가 사용 중인 vim plugin 목록

1. ctags
2. cscope
3. taglist
4. buf explorer
5. source explorer
6. NERD Tree


.vimrc 설정...

1. ctags
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set tags=./tags

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

2. cscope
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>

3. taglist / buf explorer
1
2
map <F3> :Tlist<cr><C-W><C-W>
map <F4> :BufExplorer<cr>

4. source explorer
1
2
3
4
5
6
7
8
9
10
11
nmap <F8> :SrcExplToggle<CR>
nmap <C-H> <C-W>h
nmap <C-J> <C-W>j
nmap <C-K> <C-W>k
nmap <C-L> <C-W>l

let g:SrcExpl_winHeight=8
let g:SrcExpl_refreshTime=100
let g:SrcExpl_jumpKey="<ENTER>"
let g:SrcExpl_gobackKey="<SPACE>"
let g:SrcExpl_isUpdateTags=0

5. NERD Tree
1
2
let NERDTreeWinPos = "left"
nmap <F9> :NERDTreeToggle

+ Recent posts