Vim Tips Wiki
Advertisement
Tip 1312 Printable Monobook Previous Next

created August 23, 2006 · complexity basic · author lpenz · version n/a


xterm and most other modern terminal emulaters support 256 colors, you can use a script to check if your terminal supports 256 colors.

To enable 256 colors in vim, put this your .vimrc before setting the colorscheme:

set t_Co=256

You may also need to add:

set t_AB=^[[48;5;%dm
set t_AF=^[[38;5;%dm

Your colors should at least look a little different. For full effect, use a colorscheme that supports 256 colors like desert256 (script#1243), inkpot (script#1143) or gardener (script#1348).

References

See Also

Advertisement