Windows 10 Bash enabling Vim colorschemes?
From here: https://blogs.msdn.microsoft.com/commandline/2016/09/22/24-bit-color-in-the-windows-console/
24-bit RGB color was added to the Windows Console in Windows 10 Insiders Build #14931, and I am running an earlier build (#14393), which only supports 16 colors. Hopefully it will be included in the Creator's Update.
Related videos on Youtube
charon00
Updated on September 18, 2022Comments
-
charon00 over 1 year
I recently started using Windows 10's new "Windows Subsystem for Linux" feature ("Bash on Ubuntu on Windows") and I have been having difficulty getting colorschemes (specifically zenburn) to work in Vim.
From Bash's perspective, I have placed the colorscheme file in ~/.vim/colors/zenburn.vim, and "colorscheme zenburn" in ~/.vimrc. Unfortunately vim is still using the default colors.
Additionally, if I add "export TERM=xterm-256color" into my .bashrc, which is required for zenburn in Vim, the colors are grayscale.
Are colorschemes supported and what can I try to get them working?
-
tealhill supports Monica about 7 yearsAre you using Cygwin, or coLinux, or VirtualBox, or the Microsoft "Ubuntu on Windows" package?
-
charon00 about 7 yearsUbuntu on Windows (I've seen it as Windows 10 Bash other places), edited. I think the problem is the answer I placed below. I'll have to wait until that build is pushed out since I need stability on this machine so I don't want to run the Insider Builds.
-
tealhill supports Monica about 7 yearsBoth "Ubuntu on Windows" and "Windows 10 Bash" are ambiguous; those phrases might mean "VirtualBox" or "Cygwin" or "MSYS2". The official name of the technology is the mouthful "Windows Subsystem for Linux", or "WSL" for short. I've suggested an edit to your question to use that name, and to add the [windows-linux-subsystem] tag.
-
charon00 about 7 yearsThanks, I will start using the WSL terminology in the future.
-
tealhill supports Monica almost 7 yearsA) No problem! B) Excellent.
-