新建~/.vimrc文件,把下面设置copy进去~

set cindent shiftwidth=4   设置vi编辑器缩进
set tabstop=4   设置tab键空4个位置
set nu 显示行号
set hlsearch 搜索高亮
syntax on 语法高亮