一步步搭建Ubuntu环境——vim中文乱码解决方法
2012-11-28 13:34
681 查看
打开vim的配置文件:
$vi ~/.vimrc
在其中加入
let &termencoding=&encoding
set fileencodings=utf-8,gb2312,gbk,gb18030
此时vim就能正确显示中文了。
$vi ~/.vimrc
在其中加入
let &termencoding=&encoding
set fileencodings=utf-8,gb2312,gbk,gb18030
此时vim就能正确显示中文了。
相关文章推荐
- Ubuntu1204 vim中文乱码解决方法
- Ubuntu下pdf、gedit、vim 中文无法读取或者显示乱码的解决方法
- ubuntu下的vim和gvim汉字(中文)乱码解决方法
- Ubuntu vim 中文乱码解决方法
- Ubuntu下的vim编辑器中汉字(中文)乱码解决方法
- Ubuntu下pdf、gedit、vim 中文无法读取或者显示乱码的解决方法
- Ubuntu vim 中文乱码解决方法
- ubuntu下的“用vim打开中文乱码,用cat打开正常显示”的解决方法
- ubuntu 中用vim打开txt等文件中文显示乱码的解决方法
- Ubuntu中Vim 中文乱码解决方法
- ubuntu下的“用vim打开中文乱码,用cat打开正常显示”的解决方法
- ubuntu下的vim和gvim汉字(中文)乱码解决方法
- ubuntu中vim和gedit中文乱码解决方法
- Ubuntu1204 vim中文乱码解决方法
- ubuntu中vim和gedit中文乱码解决方法
- Ubuntu server 中文环境方格乱码解决方法
- python2.7代码在win7_64环境下输出中文乱码解决方法
- [Ubuntu]flash中文显示乱码(方块) 解决方法
- ubuntu解决 打开windows记事本.txt中文乱码的方法
- ubuntu下的latex用beamer制作演示文稿时中文书签乱码解决方法