[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.

regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 2] Shell Interactive With Zenity Episode 5 -- list

[Level 2] iif in Python