现在的位置: 首页 > 综合 > 正文

68、secureCRT,vim中输入中文

2013年06月18日 ⁄ 综合 ⁄ 共 496字 ⁄ 字号 评论关闭

1、secureCRT

session中的设置

1)Session Option→选字体(新宋体,or others),字符集选Chinese_GB2312

2)vim /etc/sysconfig/i18n

LANG="zh_CN.UTF-8"

3)vi ~/.bash_profile

export LANG=zh_CN.UTF-8

2、vim

1设置的基础上:

1):set encoding=utf-8

2)vim /etc/.vimrc

set fileencodings=ucs-bom,utf-8,cp936 //按照fileencoding指定的文件编码方式来解析文件

:set fileencoding //查看当前的编码方式

参考

1http://www.cnblogs.com/mydomain/archive/2011/09/01/2161476.html

2http://blog.csdn.net/hansel/article/details/5163648

3http://hi.baidu.com/zengyinfei/blog/item/95efddaf1a8f5dc47dd92a51.html

抱歉!评论已关闭.