0

How can I set two color schemes in vim, one when the desktop theme is light and one when the desktop theme is dark? It is particularly useful when using gVim, plugin suggestions are welcome

1
  • I'm literally curious, why downvote? Aug 3, 2023 at 13:51

1 Answer 1

1

I think you will have to script it yourself. There are some tutorials on how to do it for Vim running on a terminal, that you would have to adapt to gVim (and maybe your operating system):

If you are on macOS, you could consider switching to MacVim, which added support for this some years ago

I use is auto-dark-mode, but it only runs on Neovim and doesn't support Windows

2
  • thanks, I will try to find a way with your guide, if it will work for me, I will comment here on my findings and mark your response as an answer... Aug 3, 2023 at 13:51
  • 1
    Sounds good! Also, don't hesitate to write your own answer if you come up with your own script/plug-in
    – Tae
    Aug 3, 2023 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.