Linux – Windows 10 Bash enabling Vim colorschemes

colorsvimwindows 10windows-subsystem-for-linux

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?

Best Answer

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 Question