ctags+taglist+cscope+VIM for C development
来源:互联网 发布:苹果怎么快捷打开数据 编辑:程序博客网 时间:2024/05/01 21:58
1. download latest ctags, cscope, taglist
ctags:
http://sourceforge.net/projects/ctags/files/ctags/5.8/ctags58.zip/download
cscope:
http://sourceforge.net/projects/cscope/files/cscope/15.7a/cscope-15.7a.tar.bz2/download
taglist:
http://sourceforge.net/projects/vim-taglist/files/vim-taglist/4.5/taglist_45.zip/download
2. install cscope and taglist
root@ubuntu-laptop:~/Downloads/cscope-15.7a# ./configure
root@ubuntu-laptop:~/Downloads/cscope-15.7a# make
root@ubuntu-laptop:~/Downloads/cscope-15.7a# make install
root@ubuntu-laptop:~/Downloads# unzip taglist_45.zip
Archive: taglist_45.zip
inflating: plugin/taglist.vim
inflating: doc/taglist.txt
root@ubuntu-laptop:~/Downloads# cp plugin/taglist.vim /usr/share/vim/vim72/plugin/
root@ubuntu-laptop:~/Downloads# cp doc/taglist.txt /usr/share/vim/vim72/doc/
root@ubuntu-laptop:~/Downloads#
3. configure .vimrc file
syntax enable
syntax on
colorscheme desert
set nu
set tabstop=4
set tags=/opt/mliao/tags
"taglist configure
"=============================================
let Tlist_Ctags_Cmd='/usr/local/bin/ctags'
let Tlist_Show_One_File=0
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1
let Tlist_Use_SingleClick=1
let Tlist_Show_Menu=1
let Tlist_Window_Jump_To_Tag=1
let Tlist_Window_Open_File=1
let Tlist_Auto_Highlight_Tag=1
let Tlist_Display_Prototype=1
map ` :TlistOpen<CR>
map 1 :tabnew
"cscope configure
"=============================================
cscope add /opt/mliao/cscope.out /opt/mliao/perl-5.14.1
nmap <C-]> :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-\> :cs find c <C-R>=expand("<cword>")<CR><CR>
4. link vim to vi.
root@ubuntu-laptop:/usr/bin# mv vi vi.bak
root@ubuntu-laptop:/usr/bin# ln -s /usr/bin/vim vi
root@ubuntu-laptop:/usr/bin# ll vi
lrwxrwxrwx 1 root root 12 2011-08-09 13:08 vi -> /usr/bin/vim
5. get ctags and cscope database for your src code.
root@ubuntu-laptop:/opt/mliao# ctags -R perl-5.14.1/
root@ubuntu-laptop:/opt/mliao# cscope -Rbq
root@ubuntu-laptop:/opt/mliao# ls
cscope.in.out cscope.out cscope.po.out perl-5.14.1 tags
root@ubuntu-laptop:/opt/mliao#
6. show time.
- ctags+taglist+cscope+VIM for C development
- vim+ctags+taglist+cscope
- vim + ctags + cscope+taglist
- vim+ctags+cscope+taglist
- vim+Taglist+cscope+ctags
- vim+ctags+taglist+cscope
- vim + cscope + ctags + taglist
- vim + ctags + cscope + taglist
- vim cscope+ctags+taglist
- vim + ctags + taglist + cscope + cppcomplete
- ubuntu vim+ctags+taglist+cscope
- vim+ctags+cscope+taglist+nerdtree
- Vim配置 Vim+Ctags+Taglist+cscope
- vim+ctags+taglist+cscope+cppcomplete+global
- vim+ctags+taglist+cscope+cppcomplete+global
- vim + ctags + taglist + cscope + cppcomplete + global
- vim+ctags+taglist+cscope+cppcomplete+global
- vim + ctags + taglist + cscope 阅读代码
- delphi的拖拽功能实现
- 《C专家编程》读书笔记10
- BOOL 和 bool
- 2011-8-8 20:52:01
- Java中serialVersionUID的解释
- ctags+taglist+cscope+VIM for C development
- SQL Server,Oracle,DB2数据库SQL语句比较
- zoj 1295 Reverse Text
- hdu 1879 继续畅通工程
- Xcode 4: The selected run destination is not valid for this action
- LINUX安装JDK1.6攻略
- MySQL的Grant命令 — 这个比较全,比较细致,记录下来,以备后用
- 如何参与一个开源项目
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'cre