티스토리 뷰

linux

Tag List on the side Windows in Vim.

kenshin579 2010. 12. 3. 16:25
Requires exuberant ctags
.
># sudo apt-get install exuberant-ctags

Unzip the taglist_45.zip and copy the following files to $HOME/.vim/ directory where it is appropriated
plugin/taglist.vim - main taglist plugin file
doc/taglist.txt    - documentation (help) file

Restart your vim editor and type the following command to open the side window. 

:TlistToggle



To customize the side windows, please take a look at the following.
 " TagList options
let Tlist_Close_On_Select = 1 "close taglist window once we selected something
let Tlist_Exit_OnlyWindow = 1 "if taglist window is the only window left, exit vim
let Tlist_Show_Menu = 1 "show Tags menu in gvim
let Tlist_Show_One_File = 1 "show tags of only one file
let Tlist_GainFocus_On_ToggleOpen = 1 "automatically switch to taglist window
let Tlist_Highlight_Tag_On_BufEnter = 1 "highlight current tag in taglist window
let Tlist_Process_File_Always = 1 "even without taglist window, create tags file, required for displaying tag in statusline
let Tlist_Use_Right_Window = 1 "display taglist window on the right
let Tlist_Display_Prototype = 1 "display full prototype instead of just function name
"let Tlist_Ctags_Cmd = /path/to/exuberant/ctags

nnoremap <F5> :TlistToggle
nnoremap <F6> :TlistShowPrototype

set statusline=[%n]\ %<%f\ %([%1*%M%*%R%Y]%)\ \ \ [%{Tlist_Get_Tagname_By_Line()}]\ %=%-19(\LINE\ [%l/%L]\ COL\ [%02c%03V]%)\ %P


'linux' 카테고리의 다른 글

Latex on Mac (한글로 쓰기는 방법도 포함)  (0) 2011.06.25
Vim Folding  (0) 2010.12.05
tag lislt, vim plugin  (0) 2010.11.18
Switch to next/previous file in VIM  (0) 2009.11.07
Add line numbers in vim  (0) 2009.11.02
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
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
글 보관함