简体中文的vim tutor

由于编码的缘故,如果你的系统环境是简体中文.utf-8,终端中输入vimtutor里,通常会显示繁体的tutor,或者干脆乱码。

然而看该tutor最后的说明:

譯制者附言︰

簡體中文教程翻譯版之譯制者為梁昌泰 ,還有另外一個聯系地址︰linuxrat@gnuchina.org。

繁體中文教程是從簡體中文教程翻譯版使用 Debian GNU/Linux 中文項目小組的于廣輝先生編寫的中文漢字轉碼器 autoconvert 轉換而成的,並對轉換的結果做了一些細節的改動。

感觉岂不是很别扭?简体的tutor一直就在系统里(tutor.zh.euc即为简体),我们只要把编码改为utf-8就可以使用了。

比如说如下命令

cd  /usr/share/vim/vim73/tutor/

sudo vim  tutor.zh.euc

:set fileencoding=utf-8

:wq

sudo mv tutor.zh.euc tutor.zh.utf-8

或者是

sudo iconv -f gbk -t utf8 /usr/share/vim/vim73/tutor/tutor.zh.euc -o ~/tutor.zh.utf-8

sudo mv ~/tutor.zh.utf-8 /usr/share/vim/vim73/tutor/

vim的简体中文帮助文件则是需要自己下载安装的

http://vimcdoc.sourceforge.net/

压缩包内有安装说明。

This entry was posted in 我用软件 and tagged , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>