On * nix systems, the most important task is to set the $ TERM environment variable to a terminfo entry that describes your terminal capabilities , including the number of colors supported , to advertise these capabilities for applications that will run inside your terminal.
In other words, the reason you set this variable in the first place is to say Vim (or mutt .. slrn .. ELinks .. etc.) .. Hey, by the way .. I support 256 colors, you know..?
As a result, it is not indicated when adding spreads to your vimrc to check the value of $ TERM in order to set the value of the t_Co Vim variable. Vim is smart enough to pick up the supported number of colors from the terminfo entry pointed to by the $ TERM variable. That is why you install it first ..!
In this regard, the Vim terminal / console simply follows the * nix model and determines the capabilities of the terminal from the terminfo entry, and automatically sets the contents of the t_Co variable.
Tried and tested something like 15 different terminal emulations in GNU / linux environment.
guv ' Jul 21 '12 at 20:21 2012-07-21 20:21
source share