Thursday, September 24, 2020

Re: [vim colours + iTerm2 colours]

On 2020-09-23, 'Grant Taylor' via vim_use <vim_use@googlegroups.com> wrote:
> On 9/22/20 7:33 AM, Maxim Abalenkov wrote:
>> I tend to use both vim colours and iTerm2 colour scheme. If I understand
>> correctly, the resulting colours that I see are a mixture of both Vim
>> and iTerm2 colour profiles superimposed. Therefore, my question is how
>> do I tell Vim to use only Vim colour settings and ignore the iTerm2
>> colours? Thank you very much and have a productive day ahead!
>
> Doesn't vim just specify the color number / index (0-7 / 0-15 / 0-255)
> that it wants used for specific characters and then rely on the terminal
> (emulator) to set the actual colors used for any given color number / index?

Not when termguicolors is set to 1.

> I don't think there is any (good*) way for vim to know that you're using
> iTerm2 and adjust it's behavior accordingly. I think this is all in
> iTerm2's control.

iTerm2 defines $TERM_PROGRAM to 'iTerm.app' and $LC_TERMINAL to
'iTerm2'.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/rkhnsp%24120d%243%40ciao.gmane.io.

No comments: