简单配置你的vimrc

来源:互联网 发布:人工少女3人物数据 编辑:程序博客网 时间:2024/06/16 03:41
"一般设置.
set nocompatible "VIM而不是VI
set history=50 "历史记录50条
set fenc=utf-8 "设置默认语言为8位unicode
man Q gq "屏蔽Q, 以免进入Ex模式
filetype on "打开文件类型检测

"颜色设置.
colorscheme evening "主题
syntax on "语法高亮

"界面设置.
set ruler "显示当前位置
set number "显示行号
"set nonumber "不显示行号

"格式设置.
set autoindent "自动缩进
set smartindent "智能缩进
set cindent "C缩进
set tabstop=4 "硬TAB
set softtabstop=4 "软TAB
set shiftwidth=4 "缩进空格数
set expandtab "空格替换TAB
set smarttab "智能TAB

set showmatch "显示匹配
set matchtime=5 "1/10秒延迟
set hlsearch "高亮搜索
set incsearch "搜索中匹配

以上是一个简单的vimrc配置文件, 可以方便的进行编程了.
关于更复杂的vimrc, 请参考:
http://www.douban.com/group/topic/1013405/
原创粉丝点击