[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 3] Install Memcached Storage Engine for MySQL on CentOS 5.4

[Level 1] How to install Jython on Ubuntu.

[Level 2] Shell Interactive With Zenity Episode 4 -- file-selection