在~/.vimrc文件中添加如下两行即:
set encoding=GB2312
set fileencoding=GB2312