set nocp set backspace=indent,eol,start set number set autoindent set nocompatible set bs=indent,eol,start set history=10 set background=dark syntax on set nu set ai set hlsearch set incsearch set showmatch set autowrite set ruler set tabstop=4 map <C-a> ggVG if v:lang =~ "utf8$" || v:lang =~ "UTF-8$" set fileencodings=utf-8,latin1,ucs-bom endif
以上内容 放到 /home/用户/.vimrc下