1.
sudo gedit /etc/vim/vimrc
2.add
let &termencoding=&encoding
set fileencodings=utf-8,gbk,gb2312,ucs-bom,cp936
set tabstop=2
set softtabstop=2
set shiftwidth=2
set cindent
set nu
1.
sudo gedit /etc/vim/vimrc
2.add
let &termencoding=&encoding
set fileencodings=utf-8,gbk,gb2312,ucs-bom,cp936
set tabstop=2
set softtabstop=2
set shiftwidth=2
set cindent
set nu