Chinaunix首页 | 论坛 | 博客
  • 博客访问: 379706
  • 博文数量: 61
  • 博客积分: 4650
  • 博客等级: 上校
  • 技术积分: 786
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-11 21:07
个人简介

少抱怨,多实干;

文章分类

全部博文(61)

文章存档

2017年(1)

2016年(13)

2015年(1)

2013年(2)

2011年(1)

2010年(3)

2009年(23)

2008年(17)

我的朋友

分类: LINUX

2009-10-13 17:11:32

文件: vimrc.zip
大小: 1KB
下载: 下载
这个配置是一个便于阅读源代码的,类似于sourceinsight,
用cscope和ctags在当前目录下生成索引文件就可以开始阅读了,当然最好是也装个taglist插件,这样就可以打开函数列表了。
 
附件里带有color文件,把它放在/usr/share/vim/vim70/color下面
然后把vimrc放在当前用户目录下,并改名为.vimrc就可以使用了
打开vim的gui界面后是黑色背景,很酷。
下面是vim的配置:
let Tlist_Show_One_File=1
"set autochdir
set tag=tags
map :cs find c =expand("")
map :cs find d =expand("")
map :cs find f =expand("")
map :cs find g =expand("")
map :cs find i =expand("")
map :cs find s =expand("")
map :cs find t =expand("")
map :TlistToggle
"set cscopequickfix=s-,c-,d-,i-,t-,e-,f-

colo console
set guioptions-=m "Remove menubar
set guioptions-=T "Remove toolbar
set guioptions-=r "Remove v_scroolbar"
set ai
set tabstop=4
set syntax=on
set ff=unix
set number
set autoindent
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start  " allow backspacing over everything in insert mode
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
   " than 50 lines of registers
set history=50  " keep 50 lines of command line history
set ruler 
阅读(841) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~