vim基本配置: 1.创建.vimrc文件 cd ~ 进入主目录 home touch .vimrc vim .vimrc 2.编辑.vimrc内容如下: set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 set nu set nobackup set cursorline set ruler set autoindent set tabstop=4 set expandtab