一、假如没有~/.vimrc ,先创建
二、切换到插入模式,把下面的设置直接拷贝进去:
set number
set smartindentset showmatch
set autoindent
set cindent
set modeline
set ruler
set showcmd
set showfulltag
set showmode
set smartcase
set smartindent
set imcmdline
set previewwindow
set hlsearch
syntax on
set shiftwidth=4