Enable Code Highlight in VIM on AIX / AIX 中开启语法高亮

Code highlight is disabled by default while you installed VIM in AIX. The root cause is default installation doesn’t create the .vimrc file. You can follow below steps to enable it.

  1. Add “export TERM=aixterm” to “.profile” in your home directory.
  2. Copy “$VIMRUNTIME/vimrc_example.vim” to “$HOME/.vimrc”.

In my system, my $VIMRUNTIME is “/opt/freeware/share/vim/vim63/” and my Home directory is “/”. And the item 1 is optional.

很多用户会发现,VIM 的语法高亮在 AIX 中默认没有被启用。仔细研究会发现 VIM 的 Runtime 配置文件根本没有像 Linux 中那样被自动配置。下边是配置方法。

  1. 在 “.profile” 中加入 “export TERM=aixterm”。
  2. 复制默认 Runtime 配置文件 “$VIMRUNTIME/vimrc_example.vim” 到 Home 目录下 “$HOME/.vimrc”。

在我的系统中,$VIMRUNTIME 是 “/opt/freeware/share/vim/vim63/”,Home 目录是 “/”。并且第一项是可选做的。


related post

Leave a Reply

Your email address will not be published. Required fields are marked *