1 回答
已采纳
雪莉酱
TA贡献18条经验 获得超2个赞
在home目录下建立.vimrc文件,这是Vim的主配置文件。在这个文件中加入如下配置。
"Basic settings 2 set tabstop=2 3 set shiftwidth=2 4 set backspace=2 5 set autoindent 6 set nocompatible 7 syntax on 8 set hlsearch 9 set number10 set ruler11 set showcmd12 set showmatch13 set wrap14 set hidden " Keep the unsaved changes in the buffer when you switch to another file15 set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 " file encoding16 filetype plugin indent on
添加回答
举报
0/150
提交
取消