vim 常用设置选项

创建日期: 2022-11-20 18:56 | 作者: 风波 | 浏览次数: 13 | 分类: shell
" 带有如下符号连接的单词被视为同一个单词
set iskeyword+=_,$,@,%,#
" 设定默认解码
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
set fenc=utf-8
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936,big5
" 显示行号
set nu
" 不显示行号
set nonu
set nowrap

参考:https://blog.csdn.net/qq_25925973/article/details/90747901

13 浏览
0 评论