When I :echo &t_Co in my Vim, it shows my terminal colors. If I :echo &t_Co in my gVim, nothing is showed (since I’m not in terminal).
I would like to use a condition in my vimrc to detect this situation (the &t_Co with no value in gVim, how do I test it? I know I can use has(“gui_running”) to see if I’m in gVim or not, but I would like to know how to test a variable like &t_Co that isn’t showing nothing).
(
exists('&t_Co')doesn’t help because it does exist in GVim, it’s just empty.)