vim常用配置

set encoding=utf-8  " 新创建文件格式为utf-8
set termencoding=utf-8 " 终端显示格式,把解析的字符用utf-8编码来进行显示和渲染终端屏幕
set fileencodings=utf-8,gb18030,gbk,cp936,gb2312 " 可以查看多种格式的文件
" 光标标尺
 set cursorcolumn
 autocmd InsertEnter * highlight CursorColumn ctermfg=White ctermbg=Green cterm=bold guifg=Green guibg=green gui=bold
 autocmd InsertLeave * highlight CursorColumn ctermfg=Yellow ctermbg=gray cterm=bold guifg=Green guibg=yellow gui=NONE
" 选中复制
 set mouse-=a
 set number

你可能感兴趣的:(vim常用配置)