现在的位置: 首页 > 综合 > 正文

简单配置你的vimrc

2012年09月04日 ⁄ 综合 ⁄ 共 525字 ⁄ 字号 评论关闭
"一般设置.
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/

抱歉!评论已关闭.