ubuntu11.04 下编辑windows文本文件或者源码时,经常碰到显示乱码。 要解决这个问题,只需在/etc/vim/vimrc下加入下面这行: set fileencodings=ucs-bom,utf-8,cp936,gbk