Friday, October 30, 2009

[Level 1] How to let our source code display with colors in Vim.

In TWOSUG , someone ask about how to display colors in shell.
1. Setting TERM variables.
# export TERM=xterm-color;
2. Use Vim to open the source.
# vim ./test.c;
3. Turn on the syntax mode in Vim.
In last line mode, type the following command.
:syntax on

Wish this helps.

Stanley Huang