vim打开GB2312/GB18030/GBK编码的文本文件

By Li哥

VIM关于编码的选项主要有四个
set encoding
set fileencoding
set fileencodings
set termencoding

但无论怎么试都不能用。只能先用iconv把文本转换编码后再用vim打开,然后再转回去……

今天发现个好办法

最末行模式输入命令

:edit ++enc=gb18030

完美解决!


, ,

categoriaLinux应用, tips&notes commento4条评论 data二月 20th, 2010

关于... Li哥

这个作者已经发布了 42 篇文章.
道在,哥就在

分享

FacebookTwitterEmailWindows LiveTechnoratiDeliciousDiggStumbleponMyspaceLikedin

评论


Earnest
三月 8th, 2010

Google google


Roland
三月 9th, 2010

amoxicillin mexican amoxicillin amoxicillin


Finaenuttnott
三月 10th, 2010

Hello! Can you tell me how i can register mail at google [url=http://google.com]google[/url] http://google.com

Li哥 回复:

http://mail.google.com ?