I have made some colorschemes that use colors 0-15 or 16-256 according to the
value of t_Co or based on a user option:
if &t_Co < 256 || g:mytheme_force16colors = 1
# Define hi groups with colors 0-15
else
# Define hi groups with colors 16-256
endif
Setting t_Co at runtime appears to cause the colorscheme to reload, so it seems
that the user option above is redundant. Is there any reason why one should
avoid changing t_Co at runtime or is it ok to set t_Co to reload the
colorscheme with a different configuration?
Thanks,
Life.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment