I recently started using
:set termguicolors which enables 24 bit colors. However, this (along with the rest of my config) causes vim to display absolutely no colors whenever it is started in a different way:
- spawned by git for editing commit messages
EDITOR=vim crontab -e
and so on...
I'd like to look for a change in environment variables and vim state but I'm not sure what are the right ways to dump those out so I can diff them.