免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1500 | 回复: 0
打印 上一主题 下一主题

vim+ctags+taglist环境构建 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-30 12:51 |只看该作者 |倒序浏览

安装ctags:
sudo apt-get install exuberant-ctags (不能是emacs的ctags)
安装vim:
sudo apt-get install vim(版本更新)

http://vim.sourceforge.net/scripts/script.php?script_id=273
下载taglist
unzip -d taglist taglist_45.zip
得到doc和plugin目录
cd plugin
sudo cp taglist.vim /usr/share/vim/vim71/plugin/
sudo vim /usr/share/vim/vim71/plugin/taglist.vim
在 if !exists('loaded_taglist')上面加入
let Tlist_Ctags_Cmd="/usr/bin/ctags"
运行vim
输入命令:Tlist显示/消除taglist
sudo vim /usr/share/vim/vimrc
修改vim配置
colorscheme evening "使用自己喜欢的配色方案
set nummber "显示行号
filetype on "检测文件的类型
set background=dark "背景使用黑色
syntax on "语法高亮度显示
set autoindent "vim使用自动对齐,也就是把当前行的对起格式应用到下一行
set smartindent "智能对齐
set tabstop=4 "设置tab键为4个空格
set shiftwidth=4 "设置当行之间交错时使用4个空格
使用ctags
ctrl + ] 和ctrl + o 来回跳转


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/95535/showart_1915037.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP