From def16e48a4775881ce438aea68badd227f6e4fbf Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 2 Jul 2013 13:04:38 +0900 Subject: [PATCH 1/2] Fixes color values for windows console --- plugin/airline.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index bc11ef9..eb94a54 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -61,6 +61,9 @@ function! s:highlight(mode, keys) for key in a:keys if exists('s:airline_colors_{l:mode}') && exists('s:airline_colors_{l:mode}[key]') let colors = s:airline_colors_{l:mode}[key] + if (has('win32') || has('win64')) && !has('gui_running') + let colors = map(colors, 'v:val != "" && v:val > 128 ? v:val - 128 : v:val') + endif let cmd = printf('hi %s %s %s %s %s %s %s', \ s:airline_highlight_map[key], \ colors[0] != '' ? 'guifg='.colors[0] : '', From abd286ca83ae99a801e8cee8ef1bb3756cee4311 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 2 Jul 2013 13:04:59 +0900 Subject: [PATCH 2/2] Possible to disable airline --- plugin/airline.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index eb94a54..fef8e9d 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -1,3 +1,7 @@ +if &cp || v:version < 702 || (exists('g:loaded_airline') && g:loaded_airline) + finish +endif +let g:loaded_airline = 1 if !exists('g:airline_left_sep') let g:airline_left_sep = exists('g:airline_powerline_fonts')?"":">" endif