Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.59k stars 572 forks source link

[Feature Request] Support vim true color when set term=win32 #1818

Open hulucc opened 5 years ago

hulucc commented 5 years ago

https://vi.stackexchange.com/questions/17464/24-bit-256-colorscheme-in-windows-console

Nowadays cmd already support 24bit color and vim also handle that. Is it possible to make it happen in conemu? With the native support we can avoid a lot of glitches which are not easy to resolve, such as #1741 #1688

tmuka commented 4 years ago

I couldn't figure out how to get git bash on windows tabs in conemu to use true color after trying to follow the steps in the docs with vim set termguicolors. I ended up resorting to running git bash directly without conemu since i'm able to use vim in true color that way. I miss conemu tabs, so i'm hoping there is a solution for this.

hulucc commented 4 years ago

@tmuka you should use windows version of vim. image

tmuka commented 4 years ago

@tmuka you should use windows version of vim. image

Thanks! That is helpful. It looks like i was using the git bash /usr/bin/vim instead of my windows vim alias vim='/c/Program\ Files\ (x86)/Vim/vim81/vim.exe'. But, switching that didn't make much of a difference to my setup.

now when i run inside vim for windows inside ConEmu :set t_Co? t_Co=16 :runtime syntax/colortest.vim i see its running at 16 colors.

If i try to run :set t_Co=256 the colortest goes to black and white

running :set termguicolors and :set notermguicolors dont change the black and white

if i :set t_Co=16 it goes back to showing the colors. Does yours run at 256 colors or higher?

inside WSL I get vim running at t_Co=256, termguicolors with the expected color output.

hulucc commented 4 years ago

@tmuka My vim config about true color.

set term=xterm
set t_Co=256
set termguicolors

Env

set TERM=screen-256color

image