[vim] Use cterm colors on Windows (#1793)

Truecolor does not work on default Windows terminal.
It is a problem in neovim GUIs.

https://github.com/sainnhe/edge/issues/5#issuecomment-565748240
This commit is contained in:
Jan Edmund Lazo 2019-12-15 08:17:24 -05:00 committed by Junegunn Choi
parent a9906c7c29
commit aa0e10ead7

View File

@ -244,7 +244,7 @@ function! s:common_sink(action, lines) abort
endfunction
function! s:get_color(attr, ...)
let gui = has('termguicolors') && &termguicolors
let gui = !s:is_win && !has('win32unix') && has('termguicolors') && &termguicolors
let fam = gui ? 'gui' : 'cterm'
let pat = gui ? '^#[a-f0-9]\+' : '^[0-9]\+$'
for group in a:000