-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On October 26, 2014 7:09:15 PM GMT+03:00, DwigtArmyOfChampions <[email protected]> wrote: >I understand that "set background=dark" does not change the background >color. "Setting this option does not change the background color, it >tells Vim what the background color looks like." Okay, so why does that >change the font colors that I've explicitly set in my colorscheme? And >where can I control what happens if the user sets background to dark or >light? (in other words, if background == dark, set the following light >font colors to go with a dark background, else set these dark font >colors to go with a light background)? > >-- >-- >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 [email protected]. >For more options, visit https://groups.google.com/d/optout.
It is a weird setting. Changing it outside of the colorscheme triggers setting colorscheme to default. Changing it before defining Normal highlighting group in colorscheme is useless because defining Normal group triggers calculating this setting. So I think you need to check it in the colorscheme (at the top), save there and set it again after defining Normal group (because automatic detection is constantly false, especially on 256 color terminals). You cannot protect your colorscheme from the user that set this option *after* loading the colorscheme, so just mention this fact in documentation. -----BEGIN PGP SIGNATURE----- Version: APG v1.1.1 iQI1BAEBCgAfBQJUTSXjGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj HhHSvrMPD/9S3kcmVUpQ7OwcteSap+wB1kksQg0Os0ZCO1Gppb91P1zDvsxB6Qwa YUPjAnR6TwVcSUYm1YwxQdDbKkYnhGSMxdYBiGdWNO+M8lUMHKpmyJFBcSFHH57K JYWMqjpwIZEQuyBIqCQIrJLIum7cYjjm3punMSWjNPl3YoA2pyRc1e3DGEPRb2JC 5NbMLFuQnjQG+G6nHgwfEgEgipR3HjFHJVVKFYIAC3weJGCfAk57UXytEKZHQ/P2 TFkp5RAhTpGu86YsV9QzbSV4nLUzc7ek9sum8p9hjR69jSoTRIKlfk8mVAeDAQai 0zERl0dpACcF/HcicLrQgA/iZ4RgQO7C3/sp0hRHWFiA3vgql+EgWblTs87V7aIm 2O+8haMfaX/tCG2e6n+95gQnFEZc9RdPa9qJSeshp9YkIm2cL7vTx0kwCwtxO7Np p+Hn29uv+W0trUa8qnshMte+RKWTd2U4yX6ZNNM7amFrSCIo3Ys+MepWR7WMRUeu A3Ox3VXyzVZ2+s+Fy3R7AwL/aMzmEAfFNMEI2dtqtNIfCehbZIkjeuZCojibhsWE +Huw3NRvjl465Y++L0Wz1v65tBzCshXjXz7qnTjcY4Vqwe8KgOSwtLmnR78PRo0S 4+Zp5azmUFbh2AhOlrHNxpaXFRUn4X6nz2t/bHPLXT22YL8E4lHdCA== =IZUQ -----END PGP SIGNATURE----- -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
