为了更好的在VIM下进行工作,需要手动设置一下配置文件.vimrc
.vimrc可以存放在当前用户的根目录下面.~/
“显示行号
set number
“检测文件类型
filetype on
“记录历史的行数
set history=1000
“语法高亮
syntax on
“设置自动对齐
set autoindent
“设置智能对齐
set smartindent
“设置TAB键为4个空格
set tabstop=4
“显示匹配模式
set showmatch
“去掉编辑错误时的声音
set vb t_vb=
“在终端中使用mouse
set mouse=a
“查找时忽略大小写
set ignorecase
“当执行:make或者:next里保存文件内容
set autowrite

0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.