VI颜色设置与中文识别
Nov
13
VI颜色设置与中文识别
如果设置你的终端的底色为黑色的话,可能使用vi的时候的颜色就很难分的清楚,
采用如下的办法可以解决:
1、在自己的HOME目录中编辑.vimrc文件,没有就新建一个,内容如下;(这部分主要是设置默认字符编码的)
set fileencodings=utf-8,cp936,big5,latin1
set encoding=utf-8
set termencoding=cp936
set fileencoding=utf-8
2、编辑/root/.vimrc文件(同样如果没有就新建):
set ts=4 ht=4 sw=4
set fileencodings=utf-8,cp936,big5,latin1
set encoding=utf-8
set termencoding=cp936
set fileencoding=utf-8
set background=dark
最后一行就是使用为dark环境,你也可以设置成evening等等,详细请参阅:
http://man.chinaunix.net/newsoft/vi/doc/usr_06.html


















No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URI
Leave a comment
If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below.