进入安装目录,找到_vimrc文件,用文本编辑器打开,在前面加入下述内容
设置中文支持
" 设置编码自动识别, 中文引号显示
" set fileencodings=utf-8,cp936,big5,euc-jp,euc-kr,latin1,ucs-bom
set fileencodings=utf-8,gbk
set ambiwidth=double
设置ColorScheme,我选择的是desert,你可以在GVim的Edit-->Color Scheme看到其他的Color Scheme。
" ColorScheme
colorscheme desert
设置tab插入空格,缩进,删除键删除缩进,页面文字宽度
" 允许退格键删除和tab操作
set smartindent
set smarttab
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set backspace=2
set textwidth=79
启用鼠标,启用行号
" 启用鼠标
set mouse=a
" 启用行号
set nu