linux vim 去掉 bomb

<pre name="code" class="sql">转换文件编码
在确保文件打开且无乱码后:

" 设置文件编码为新编码
:set fileencoding=utf8
 
:w 新文件名
最后说说如何去掉或者加上bom,如果有vim那最好不过了,去掉命令:
set encoding=utf-8
set nobomb
添加命令:
set encoding=utf-8
set bomb



                                    
原文地址:https://www.cnblogs.com/hzcya1995/p/13351542.html