vim7.3 编辑中文字符的文件会显示乱码

默认编译安装vim7.3后打开含有中文字符的文件会显示乱码,google了一圈,大多都是说在配置文件中添加下面的几行就可以解决问题:
set encoding=utf-8
set fileencoding=utf-8
但我设置了之后仍然没有解决问题

...
--enable-workshop       Include Sun Visual Workshop support.
--disable-netbeans      Disable NetBeans integration support.
--enable-sniff          Include Sniff interface.
--enable-multibyte      Include multibyte editing support.
--enable-hangulinput    Include Hangul input support.
--enable-xim            Include XIM input support.
--enable-fontset        Include X fontset output support.
...

重新配置编译选项
$./configure --enable-multibyte  # 多字节编辑支持
$ make && sudo make install

你可能感兴趣的:(vim)