vim常用配置
程序员文章站
2024-02-20 20:20:11
...
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
上一篇: JS之迭代器 Iterator
下一篇: JS类的继承