add highlighter class

This commit is contained in:
Bailey Ling
2013-08-17 12:50:07 +00:00
parent c017c9fbb3
commit 2f92346194
6 changed files with 84 additions and 63 deletions

View File

@@ -54,13 +54,3 @@ function! airline#themes#get_highlight2(fg, bg, ...)
return s:get_array(fg, bg, a:000)
endfunction
function! airline#themes#exec_highlight_separator(from, to)
if a:from == a:to
return a:from
endif
let l:from = airline#themes#get_highlight(a:from)
let l:to = airline#themes#get_highlight(a:to)
let group = a:from.'_to_'.a:to
call airline#exec_highlight(group, [ l:to[1], l:from[1], l:to[3], l:from[3] ])
return group
endfunction