Created
May 8, 2015 04:22
-
-
Save NilFoss/8a2da165296dadde4de9 to your computer and use it in GitHub Desktop.
vim spf13中文乱码解决方案
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows下初始使用vim spf13一上来就会中文乱码。 | |
注释掉 .vimrc.bundles 中的 | |
set encoding=utf-8 |
@wenmin-wu 我的和你不太一样
编辑C:\Users\Administrator.spf13-vim-3.vimrc.bundles
在set encoding=utf-8下添加如下内容,重启spf13-vim-3
set langmenu=zh_CN
let $LANG = 'zh_CN.UTF-8'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
楼上这种方法会使得,缩进时按下Tab键显示的是"?"而不是"•" 影响美观,完美的解决方法是,在.vimrc.bundles中,找到 set encoding=utf-8 在下面加入一行 let $LANG = 'zh_CN.UTF-8‘ 细想下为什么在linux下面不会出现这个问题,就是因为我们linux 的LANG='zh_CN.UTF-8’,摸索了一个晚上,希望以后遇到同样问题的人能一下子找到答案!