1. install ctag source from http://ctags.sourceforge.net/
tar xvf ctags-5.8.tar.gz
cd ctags-5.8
./configure
make && make install
2. apt-get install cscope3. Download taglist vim plugin / cscope vim plugin
- taglist from http://vim-taglist.sourceforge.net/download.html
- cscope from http://cscope.sourceforge.net/cscope_vim_tutorial.html
cp taglist_45.zip /etc/vim/
unzip taglist_45.zip /etc/vim/
vim /etc/vim/vimrc
# add " nnoremap <F12> :TlistToggle<CR>" into vimrc
cp cscope_maps.vim /etc/vim/plugin/
root@:/etc/vim -> tree
├── doc
│ └── taglist.txt
├── plugin
│ ├── cscope_maps.vim
│ └── taglist.vim
├── vimrc
└── vimrc.tiny
Example test :
Download kernel source
cd linux-2.6.38.6
cscope -Rbkq # make a sql of source index
vim drivers/input/mouse/synaptics.c
#then , ctrl + w : open Taglist , you can use " ctrl + w " , jump between windows
星期四, 5月 19, 2011
訂閱:
張貼留言 (Atom)
Who am I ?
Blog Archive
Popular Posts
Categories
- 丌 (3)
- addrinfo (1)
- Arduino (1)
- bashrc (1)
- C (12)
- chroot (1)
- code (1)
- ctags.cscope (1)
- endian (1)
- errno (1)
- Facebook (1)
- FLASH (1)
- Git (1)
- Google Gadgets (1)
- http (1)
- iphone (4)
- javascript (1)
- JB (1)
- libcurl (1)
- Life (3)
- linked-list (1)
- Linux (37)
- Mac (3)
- mysql (1)
- network (2)
- nodejs (4)
- queue (1)
- socket (2)
- SQLite (1)
- ssh (1)
- string (1)
- SVN (1)
- taglist (1)
- tar (1)
- tcp (1)
- thread (1)
- Ubuntu (1)
- win32 (1)
- Xcode (3)
Recent-posts
charles.world. 技術提供:Blogger.

0 意見:
張貼留言