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.