VIM常用设置

January 14th, 2010 | Categories: Sa | Tags:

"搜索内容时不区分大小写
set ignorecase

"高亮显示搜索到的内容
set hlsearch

"关闭.swp文件生成
set noswapfile

"tab缩进4空格
set tabstop=4

"自动缩进
set autoindent

"智能缩进
set smartindent

"显示行号
set nu

"显示标尺
set ruler

"设置命令行高度
set cmdheight=2

"实时读取文件内容
set autoread

"来回查找
set wrapscan

"高亮显示当前行
set cursorline

"历史动作记录数
set history=100

"自动换行
set wrap

No comments yet.