How can I get colours in vim?

Users of vim in other Operating Systems (e.g. GNU/Linux) expect vim to show colours by example when syntax highlighting is enabled.

Out of the box, the CSW (CSWvim) package does not show colours. Can this be enabled?

asked: 2012-09-12 by: claudio

claudio answers:

The package is compiled with support for colours, but the terminal emulation of the shell must support it. The easiest way is to use 'dtterm' for your shell. Put this in your .profile (or corresponding file for the shell, e.g. .bash_profile):

export TERM

That's it.

laurent answers:

See also that answer which should be helpful:

xterm-color: Unknown terminal type