Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2095250
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2010-07-02 17:30:52

Do coding with ctags and cscope plugin,vim could become an IDE for prgrammer under linux,like source insight for windows users.

sudo apt-get install ctags cscope

My .vimrc file under ~/

文件:vimrc.tar.gz
大小:2KB
下载:下载

My vim directory under ~/

文件:vim.tar.gz
大小:2268KB
下载:下载



Preparation
cd source_dir
ctags -R
cscope -Rbq
vi
:set tags=tags
:cs add cscope.out

Ctags
For example,I want to see where does the function rtsp_streaming_start() locate and how does it realize,just move the cursor to the expression rtsp_streaming_start,press the key 'ctrl+]' and 'ctrl+t' to turn back if you want.

 


Cscope
Ctags can not help find who call the function.Now cscope come.

 

press 'ctrl+\+c'



Reference:
1



djstava
阅读(2830) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~