Wednesday, December 11, 2013

Re: Colors when opening a file where a swap file exists

On Wednesday, December 11, 2013 10:15:55 PM UTC+1, Christian Brabandt wrote:
> It should use a light green when Vim is using :set bg=dark and a dark
> green for :set bg=light Are you sure, nothing is resetting the
> background setting afterwards? If I do
> vim -u NONE -N --cmd 'set bg=dark'
> and then :hi MoreMsg I get this
> MoreMsg xxx term=bold ctermfg=121 gui=bold guifg=SeaGreen
> while with this:
> vim -u NONE -N --cmd 'set bg=light'
> I see
> MoreMsg xxx term=bold ctermfg=2 gui=bold guifg=SeaGreen
> (and each time, the 'xxx' are colored slightly different)

~$ vim --cmd ':set bg=dark|hi MoreMsg' test.php
MoreMsg xxx term=bold ctermfg=121 gui=bold guifg=SeaGreen

~$ vim --cmd ':set bg=light|hi MoreMsg' test.php
MoreMsg xxx term=bold ctermfg=2 gui=bold guifg=SeaGreen

Not sure what 2 is since the colortest (http://www.vim.org/scripts/script.php?script_id=1349) doesn't show color number 2. I'll look into if I should just add a bash alias with some --cmd fix or if I'll change the color in the terminal.

Thanks for taking time to look into this! :)

--
--
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/groups/opt_out.

No comments: