# cat ~/.vimrc
set fileencoding=utf-8
set encoding=utf-8
set number
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set fileencoding=utf-8
set encoding=utf-8
set number
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
然后
#source ~/.vimrc
再打开就正常