Vim
Options§
option | description |
---|---|
:set ic |
ignore case |
:set hls |
highlighting search,高亮匹配到的字符 |
:set encoding=utf-8 |
设置编码格式为utf-8 |
FAQs§
中文乱码§
因为系统的 locale 是 utf-8,在 Windows 下的记事本或一些编辑器会默认使用 GB2312 或 GBK作为编码格式。
:set encoding=utf-8
# 如果不行,继续
:e ++enc=cp936