天天看點

68、secureCRT,vim中輸入中文

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 //檢視目前的編碼方式

參考