新装了CentOS5.6,语言选择的简体中文,命令可以正常输出中文,于是试了下传说中最好的vim入门教程:vimtutor命令,打开发现全是乱码-_-!

万物皆文件!vimtutor也是个文件,存放位置:/usr/share/vim/vim70/tutor/tutor.zh.euc

默认安装好的系统,此文件编码为GB2312

我们只需讲文件转为UTF-8即可正常查看经典教程了

 

#进入目录
cd /usr/share/vim/vim70/tutor/

#备份和重命名
mv tutor.zh.enc tutor.zh.enc.bak

#转编码格式
iconv -f GB2312 -t UTF-8 tutor.zh.euc.bak >tutor.zh.euc

 OK!

使用命令   vimtutor  体验你的vim入门经典教程吧,so good

相关文章:

  • 2021-11-24
  • 2021-12-01
  • 2022-01-12
  • 2021-12-08
  • 2021-05-20
  • 2021-12-15
  • 2021-04-14
  • 2021-09-13
猜你喜欢
  • 2021-11-10
  • 2021-06-05
  • 2022-12-23
  • 2021-05-27
  • 2021-08-26
  • 2021-11-03
  • 2021-09-20
相关资源
相似解决方案