Define vim color scheme related to the windows terminal theme #10496

Closed
opened 2026-01-31 02:23:09 +00:00 by claunia · 4 comments
Owner

Originally created by @pumpingiron on GitHub (Sep 4, 2020).

Hello,

I'd like to be able to apply the good vim's color scheme in accordance with the windows terminal theme defined.
In putty or Iterm, I use a variable defined when loading the profile whether it is a dark or bright theme that I can reuse later according to what I wanna do.

So, Is there an already integrated solution or has anyone ever tried to do that ?

Thanks in advance.

Originally created by @pumpingiron on GitHub (Sep 4, 2020). Hello, I'd like to be able to apply the good vim's color scheme in accordance with the windows terminal theme defined. In putty or Iterm, I use a variable defined when loading the profile whether it is a dark or bright theme that I can reuse later according to what I wanna do. So, Is there an already integrated solution or has anyone ever tried to do that ? Thanks in advance.
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 02:23:09 +00:00
Author
Owner

@DHowett commented on GitHub (Sep 9, 2020):

What variable is that? If there is prior art for exposing the terminal's color scheme to connected applications, we could consider following it.

@DHowett commented on GitHub (Sep 9, 2020): What variable is that? If there is prior art for exposing the terminal's color scheme to connected applications, we could consider following it.
Author
Owner

@pumpingiron commented on GitHub (Sep 10, 2020):

I don't understand.

I just wanna apply the correct color scheme in my vim editor related to my terminal color scheme.

For example, If I launch my terminal in a bright mode, i wanna get my vim editor in a bright mode too, so how can i get the terminal color scheme information in order to be able to detect it in my vimrc file and apply it when it's needed, and the same in reverse for a dark display ?

@pumpingiron commented on GitHub (Sep 10, 2020): I don't understand. I just wanna apply the correct color scheme in my vim editor related to my terminal color scheme. For example, If I launch my terminal in a bright mode, i wanna get my vim editor in a bright mode too, so how can i get the terminal color scheme information in order to be able to detect it in my vimrc file and apply it when it's needed, and the same in reverse for a dark display ?
Author
Owner

@skyline75489 commented on GitHub (Sep 16, 2020):

#3718 could be a solution. Unfortunately WT has not yet support it.

@skyline75489 commented on GitHub (Sep 16, 2020): #3718 could be a solution. Unfortunately WT has not yet support it.
Author
Owner

@pumpingiron commented on GitHub (Sep 16, 2020):

Sorry, I had forgotten this issue.

I've found the solution in the meantime, you juste have to get WT_PROFILE_ID variable's content which corresponds to your loaded profile's id with colorization etc ...
Then from there, if your .bashrc configuration is well designed, you can autodetect all other colorization's parameters like in vim for example.

I'm gonna close the issue.

@pumpingiron commented on GitHub (Sep 16, 2020): Sorry, I had forgotten this issue. I've found the solution in the meantime, you juste have to get WT_PROFILE_ID variable's content which corresponds to your loaded profile's id with colorization etc ... Then from there, if your .bashrc configuration is well designed, you can autodetect all other colorization's parameters like in vim for example. I'm gonna close the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10496