The plugin of VIM => taglist

March 5, 2007

要裝taglist 之前會用到
ctags
所以乖乖的先去裝上吧

# cd /usr/ports/devel/ctags/
# make install clean

然後就可以去抓taglist
然後去你vim的資料夾底下解壓就可以
像我的是vim7
# cd /usr/local/share/vim/vim7/
# unzip taglist_XXX.zip

基本上這樣就裝好了
然後你可以參考一下我的.vimrc的配置如下

” FOR Tlist
let Tlist_Ctags_Cmd = “/usr/local/bin/exctags” ” FOR BSD
let Tlist_Auto_Open=1 ” 開啟vim/gvim 的時自動打開 Tlist
let Tlist_Auto_Update=1 ” 自動更新目前的 tag 列表
let Tlist_Enable_Fold_Column=1
let Tlist_Sort_Type = “name” ” 顯示的 tag 排序方式:name/order
let Tlist_WinWidth = 30 ” Tlist 視窗的寬度
let Tlist_Show_One_File = 0 ” 是否只顯示目前文件的 tag
let Tlist_Exit_OnlyWindow = 1 ” 關閉打開的文件的同時,也關閉taglist視窗
let Tlist_Use_SingleClick = 1
map <F8> :Tlist<CR>:<CR> “按F8 自動打開Tlist
map <F9> :wincmd p<CR> “兩個視窗切換

tags:
posted in FreeBSD, program by johnpupu

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org