This commit is contained in:
itchyny
2014-06-18 22:08:19 +09:00
parent 7afa72e7fb
commit f8ae80135f
3 changed files with 21 additions and 3 deletions

View File

@@ -3,9 +3,12 @@
" Version: 0.0
" Author: itchyny
" License: MIT License
" Last Change: 2013/09/07 16:23:03.
" Last Change: 2014/06/17 11:31:14.
" =============================================================================
let s:save_cpo = &cpo
set cpo&vim
function! s:load()
let rgbfile = $VIMRUNTIME . '/rgb.txt'
let table = {}
@@ -36,3 +39,6 @@ function! lightline#colortable#gui2cui(rgb, fallback)
let rgb = [rgb[0] > 127 ? 4 : 0, rgb[1] > 127 ? 2 : 0, rgb[2] > 127 ? 1 : 0]
return rgb[0] + rgb[1] + rgb[2]
endfunction
let &cpo = s:save_cpo
unlet s:save_cpo