使用vim+cscope组合,搭建编程环境
来源:互联网 发布:网上淘宝客服招聘 编辑:程序博客网 时间:2024/06/06 18:36
1. Download the latest vim version and build it as follows steps:
./configure --prefix=/home/tools //安装目录
--enable-perlinterp //perl集成
--enable-pythoninterp //python集成
--enable-cscope //csope支持
--enable-multibyte //双字节支持,一次可以跳过一个汉字
--enable-fontset
--with-features=huge //最大特性
make
make install
2. taglist support
download taglist plugin (taglist_45.zip)
refer to:
http://easwy.com/blog/archives/advanced-vim-skills-taglist-plugin/
http://blog.chinaunix.net/u/15620/showart_174219.html
3. cscope support
download cscope-15.7.tar.bz2
./configure && make && make install
refer to:
http://lab.gracecode.com/manual/cscope_vim_tutorial_zh.html
http://cscope.sourceforge.net/large_projects.html
http://easwy.com/blog/archives/advanced-vim-skills-cscope/
4. cscope.files generation for linux kernel
#! /bin/sh
LNX=$PWD
cd /
find $LNX /
-path "$LNX/arch/*" ! -path "$LNX/arch/arm*" -prune -o /
-path "$LNX/include/asm-*" ! -path "$LNX/include/asm-arm*" -prune -o /
-path "$LNX/tmp*" -prune -o
/
-path "$LNX/Documentation*" -prune -o
/
-path "$LNX/scripts*" -prune -o
/
-path "$LNX/drivers*" -prune -o
/
-name "*.[chxsS]" -print > $LNX/cscope.files
Now, I don't use above shell script, just use following commands:
KBUILD_SRC=$PWD make cscope ARCH=arm
Linux kernel supports to build cscope files.
5. set CSCOPE_DB variable
modify ~/.bashrc:
CSCOPE_DB=/home/lanttor/Git/linux-2.6/cscope.out
export CSCOPE_DB
This step can be done manually ( I do: export CSCOPE_DB=xxx in the console for flexibility)
6. download cscope_maps.vim from
http://lab.gracecode.com/manual/cscope_vim_tutorial_zh.html
copy it to ~/.vim/plugin/ directory
- 使用vim+cscope组合,搭建编程环境
- vim+cscope组合使用配置.vimrc
- vim+ctags+taglist+cscope+cppcomplete+global 环境搭建
- 使用Vim + Cscope/Ctags|Vim,Cscope,Ctags
- Cscope环境搭建
- vim+cscope的使用
- vim+cscope的使用
- vim cscope taglist 使用
- vim + cscope 使用
- vim+cscope的使用
- 使用 VIM+Ctags+Cscope
- vim+cscope的使用
- vim cscope taglist 使用
- vim+cscope 的使用
- vim+cscope的使用
- cscope+vim使用笔记
- 使用vim + cscope/ctags
- 使用vim + cscope/ctags
- linux 网卡驱动
- Simple语言
- 序列化
- 顶贴经典台词
- 卡巴斯基:云安全不可能一蹴而就
- 使用vim+cscope组合,搭建编程环境
- Android中各种JAVA包的功能描述
- Wix使用整理(二)
- 金山:云安全技术并不新鲜
- 职场持续动力
- 数组复习及Scanner类 ,及对最大值,最小值、平均数、求和等基本算法的理解
- Visual Studio “查找/命令”框
- 动态include 与静态include之比较
- 既不能犯规也不能犯傻