Re: [Question] How to automatically check background color?

2019-01-19 Thread Bram Moolenaar
Zdenek wrote: > I'm currently trying to write test script for checking background type > (based on terminal color) in Vim. I have 'dark' terminal, so Vim > normally recognizes it and sets 'background' to 'dark', but when I > use: > > $ vim -c 'redir @">|silent set bg?|redir END|enew|put|w!

[Question] How to automatically check background color?

2019-01-18 Thread zdohnal
Hi! I'm currently trying to write test script for checking background type (based on terminal color) in Vim. I have 'dark' terminal, so Vim normally recognizes it and sets 'background' to 'dark', but when I use: $ vim -c 'redir @">|silent set bg?|redir END|enew|put|w! testfile|q' then I have