Press "Enter" to skip to content

VIM中文乱码解决方案

set langmenu=zh_CN.utf8
set fileencodings=utf-8,cp936,big5,latin1
set ambiwidth=double
let $LANG=’en’
或者也可以:
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决consle输出乱码
language messages zh_CN.utf-8
下面的方法经过我测试,是可以完美解决的,第一种没有经过测试

17 Comments

  1. ブランドコピー時計専門店
    ブランドコピーブランドコピーN級品時計激安通販
    ロレックスコピー販売、最高級ロレックスブランドコピーN級品偽物優良店
    ブランドバッグ ブランドコピー,ブランドコピーブランド販売
    ルイヴィトン モノグラム ブランドコピーイリュージョン レザー ブリーフケース

  2. Cindy
    Cindy September 12, 2016

    If you are interested in topic: earn online
    philippines hotel cebu – you should read about Bucksflooder first

  3. My partner and I stumbled over here coming from a different website and thought I might
    as well check things out. I like what I see so now i’m following you. Look forward to checking out your web page again.

  4. Folding Electric Scooter
    Folding Electric Scooter June 29, 2013

    Good day! This is my 1st comment here so I just wanted to give
    a quick shout out and tell you I truly enjoy reading your posts.
    Can you suggest any other blogs/websites/forums that deal with the
    same subjects? Thanks!

  5. LKJ
    LKJ January 14, 2013

    非常感谢,完美解决了我的问题
    不过
    language messages zh_CN.utf-8
    在我的vim中没有zh_CN.utf-8, 只有en_GB.utf8.

  6. LKJ
    LKJ January 14, 2013

    非常感谢,完美解决了我的问题
    不过
    language messages zh_CN.utf-8
    在我的vim中没有zh_CN.utf-8, 只有en_GB.utf8.

  7. LKJ
    LKJ January 14, 2013

    非常感谢,完美解决了我的问题
    不过
    language messages zh_CN.utf-8
    在我的vim中没有zh_CN.utf-8, 只有en_GB.utf8.

  8. flying
    flying December 11, 2012

    非常好,谢谢。。。

  9. flying
    flying December 11, 2012

    非常好,谢谢。。。

  10. flying
    flying December 11, 2012

    非常好,谢谢。。。

  11. Ferro's Home » Text Editor
    Ferro's Home » Text Editor January 1, 2010

    […] VIM中文乱码 set encoding=utf-8 set fileencodings=utf-8,chinese,latin-1 if has(“win32″) set […]

  12. Ferro's Home » Text Editor
    Ferro's Home » Text Editor January 1, 2010

    […] VIM中文乱码 set encoding=utf-8 set fileencodings=utf-8,chinese,latin-1 if has(“win32″) set […]

  13. Ferro's Home » Text Editor
    Ferro's Home » Text Editor January 1, 2010

    […] VIM中文乱码 set encoding=utf-8 set fileencodings=utf-8,chinese,latin-1 if has(“win32″) set […]

Comments are closed.