diff options
Diffstat (limited to 'vim/bundle/lightline.vim/autoload')
23 files changed, 0 insertions, 1517 deletions
diff --git a/vim/bundle/lightline.vim b/vim/bundle/lightline.vim new file mode 160000 +Subproject 430ce2cb063b39a0c7950cafd617e333acb6759 diff --git a/vim/bundle/lightline.vim/autoload/lightline.vim b/vim/bundle/lightline.vim/autoload/lightline.vim deleted file mode 100644 index 045e2b8..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline.vim +++ /dev/null @@ -1,485 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline.vim -" Author: itchyny -" License: MIT License -" Last Change: 2016/06/12 22:40:00. -" ============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -let s:_ = 1 - -function! lightline#update() abort - if s:_ - call lightline#init() - call lightline#colorscheme() - endif - if !s:lightline.enable.statusline - return - endif - let w = winnr() - let s = winnr('$') == 1 ? [lightline#statusline(0)] : [lightline#statusline(0), lightline#statusline(1)] - for n in range(1, winnr('$')) - call setwinvar(n, '&statusline', s[n!=w]) - call setwinvar(n, 'lightline', n!=w) - endfor -endfunction - -function! lightline#update_once() abort - if !exists('w:lightline') || w:lightline - call lightline#update() - endif -endfunction - -function! lightline#update_disable() abort - if !s:lightline.enable.statusline - return - endif - call setwinvar(0, '&statusline', '') -endfunction - -function! lightline#enable() abort - call lightline#colorscheme() - call lightline#update() - if s:lightline.enable.tabline - set tabline=%!lightline#tabline() - endif - augroup lightline - autocmd! - autocmd WinEnter,BufWinEnter,FileType,ColorScheme,SessionLoadPost * call lightline#update() - autocmd ColorScheme,SessionLoadPost * call lightline#highlight() - autocmd CursorMoved,BufUnload * call lightline#update_once() - augroup END - augroup lightline-disable - autocmd! - augroup END - augroup! lightline-disable -endfunction - -function! lightline#disable() abort - let [&statusline, &tabline] = [get(s:, '_statusline', ''), get(s:, '_tabline', '')] - for t in range(1, tabpagenr('$')) - for n in range(1, tabpagewinnr(t, '$')) - call settabwinvar(t, n, '&statusline', '') - endfor - endfor - augroup lightline - autocmd! - augroup END - augroup! lightline - augroup lightline-disable - autocmd! - autocmd WinEnter * call lightline#update_disable() - augroup END -endfunction - -function! lightline#toggle() abort - if exists('#lightline') - call lightline#disable() - else - call lightline#enable() - endif -endfunction - -let s:_lightline = { - \ 'active': { - \ 'left': [ [ 'mode', 'paste' ], [ 'readonly', 'filename', 'modified' ] ], - \ 'right': [ [ 'lineinfo' ], [ 'percent' ], [ 'fileformat', 'fileencoding', 'filetype' ] ] - \ }, - \ 'inactive': { - \ 'left': [ [ 'filename' ] ], - \ 'right': [ [ 'lineinfo' ], [ 'percent' ] ] - \ }, - \ 'tabline': { - \ 'left': [ [ 'tabs' ] ], - \ 'right': [ [ 'close' ] ] - \ }, - \ 'tab': { - \ 'active': [ 'tabnum', 'filename', 'modified' ], - \ 'inactive': [ 'tabnum', 'filename', 'modified' ] - \ }, - \ 'component': { - \ 'mode': '%{lightline#mode()}', - \ 'absolutepath': '%F', 'relativepath': '%f', 'filename': '%t', 'modified': '%M', 'bufnum': '%n', - \ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B', - \ 'spell': '%{&spell?&spelllang:""}', 'fileencoding': '%{&fenc!=#""?&fenc:&enc}', 'fileformat': '%{&ff}', - \ 'filetype': '%{&ft!=#""?&ft:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P', - \ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X ' - \ }, - \ 'component_visible_condition': { - \ 'modified': '&modified||!&modifiable', 'readonly': '&readonly', 'paste': '&paste', 'spell': '&spell' - \ }, - \ 'component_function': {}, - \ 'component_expand': { - \ 'tabs': 'lightline#tabs' - \ }, - \ 'component_type': { - \ 'tabs': 'tabsel', 'close': 'raw' - \ }, - \ 'tab_component': {}, - \ 'tab_component_function': { - \ 'filename': 'lightline#tab#filename', 'modified': 'lightline#tab#modified', - \ 'readonly': 'lightline#tab#readonly', 'tabnum': 'lightline#tab#tabnum' - \ }, - \ 'colorscheme': 'default', - \ 'mode_map': { - \ 'n': 'NORMAL', 'i': 'INSERT', 'R': 'REPLACE', 'v': 'VISUAL', 'V': 'V-LINE', "\<C-v>": 'V-BLOCK', - \ 'c': 'COMMAND', 's': 'SELECT', 'S': 'S-LINE', "\<C-s>": 'S-BLOCK', 't': 'TERMINAL' - \ }, - \ 'separator': { 'left': '', 'right': '' }, - \ 'subseparator': { 'left': '|', 'right': '|' }, - \ 'tabline_separator': {}, - \ 'tabline_subseparator': {}, - \ 'enable': { 'statusline': 1, 'tabline': 1 }, - \ '_mode_': { - \ 'n': 'normal', 'i': 'insert', 'R': 'replace', 'v': 'visual', 'V': 'visual', "\<C-v>": 'visual', - \ 'c': 'command', 's': 'select', 'S': 'select', "\<C-s>": 'select', 't': 'terminal' - \ }, - \ 'mode_fallback': { 'replace': 'insert', 'terminal': 'insert', 'select': 'visual' }, - \ 'palette': {}, - \ 'winwidth': winwidth(0), - \ } -function! lightline#init() abort - let s:lightline = deepcopy(get(g:, 'lightline', {})) - for [key, value] in items(s:_lightline) - if type(value) == 4 - if !has_key(s:lightline, key) - let s:lightline[key] = {} - endif - call extend(s:lightline[key], value, 'keep') - elseif !has_key(s:lightline, key) - let s:lightline[key] = value - endif - unlet value - endfor - call extend(s:lightline.tabline_separator, s:lightline.separator, 'keep') - call extend(s:lightline.tabline_subseparator, s:lightline.subseparator, 'keep') - let s:lightline.tabline_configured = 0 - for components in deepcopy(s:lightline.tabline.left + s:lightline.tabline.right) - if len(filter(components, 'v:val !=# "tabs" && v:val !=# "close"')) > 0 - let s:lightline.tabline_configured = 1 - break - endif - endfor - if !exists('s:_statusline') - let s:_statusline = &statusline - endif - if !exists('s:_tabline') - let s:_tabline = &tabline - endif - if s:lightline.enable.tabline - set tabline=%!lightline#tabline() - else - let &tabline = get(s:, '_tabline', '') - endif - for f in values(s:lightline.component_function) - silent! call call(f, []) - endfor - for f in values(s:lightline.tab_component_function) - silent! call call(f, [1]) - endfor - let s:mode = '' -endfunction - -function! lightline#colorscheme() abort - try - let s:lightline.palette = g:lightline#colorscheme#{s:lightline.colorscheme}#palette - catch - call lightline#error('Could not load colorscheme ' . s:lightline.colorscheme . '.') - let s:lightline.colorscheme = 'default' - let s:lightline.palette = g:lightline#colorscheme#{s:lightline.colorscheme}#palette - finally - let s:highlight = {} - call lightline#highlight('normal') - call lightline#link() - let s:_ = 0 - if has('win32') && !has('gui_running') && &t_Co < 256 - for u in values(s:lightline.palette) - for v in values(u) - for _ in v - let [_[2], _[3]] = [lightline#colortable#gui2cui(_[0], _[2]), lightline#colortable#gui2cui(_[1], _[3])] - endfor - endfor - endfor - endif - endtry -endfunction - -function! lightline#palette() abort - return s:lightline.palette -endfunction - -function! lightline#mode() abort - return get(s:lightline.mode_map, mode(), '') -endfunction - -let s:mode = '' -function! lightline#link(...) abort - let mode = get(s:lightline._mode_, a:0 ? a:1 : mode(), 'normal') - if s:mode == mode - return '' - endif - let s:mode = mode - if !has_key(s:highlight, mode) - call lightline#highlight(mode) - endif - let types = map(s:uniq(sort(filter(values(s:lightline.component_type), 'v:val !=# "raw"'))), '[v:val, 1]') - for [p, l] in [['Left', len(s:lightline.active.left)], ['Right', len(s:lightline.active.right)]] - for [i, t] in map(range(0, l), '[v:val, 0]') + types - if i != l - exec printf('hi link LightLine%s_active_%s LightLine%s_%s_%s', p, i, p, mode, i) - endif - for [j, s] in map(range(0, l), '[v:val, 0]') + types - if i + 1 == j || t || s && i != l - exec printf('hi link LightLine%s_active_%s_%s LightLine%s_%s_%s_%s', p, i, j, p, mode, i, j) - endif - endfor - endfor - endfor - exec printf('hi link LightLineMiddle_active LightLineMiddle_%s', mode) - return '' -endfunction - -function! s:term(p) abort - return get(a:p, 4) !=# '' ? 'term='.a:p[4].' cterm='.a:p[4].' gui='.a:p[4] : '' -endfunction - -if exists('*uniq') - let s:uniq = function('uniq') -else - function! s:uniq(xs) abort - let i = len(a:xs) - 1 - while i > 0 - if a:xs[i] ==# a:xs[i - 1] - call remove(a:xs, i) - endif - let i -= 1 - endwhile - return a:xs - endfunction -endif - -function! lightline#highlight(...) abort - let [c, f] = [s:lightline.palette, s:lightline.mode_fallback] - let [s:lightline.llen, s:lightline.rlen] = [len(c.normal.left), len(c.normal.right)] - let [s:lightline.tab_llen, s:lightline.tab_rlen] = [len(has_key(get(c, 'tabline', {}), 'left') ? c.tabline.left : c.normal.left), len(has_key(get(c, 'tabline', {}), 'right') ? c.tabline.right : c.normal.right)] - let types = map(s:uniq(sort(filter(values(s:lightline.component_type), 'v:val !=# "raw"'))), '[v:val, 1]') - let modes = a:0 ? [a:1] : extend(['normal', 'insert', 'replace', 'visual', 'inactive', 'command', 'select', 'tabline'], has('nvim') ? ['terminal'] : []) - for mode in modes - let s:highlight[mode] = 1 - let d = has_key(c, mode) ? mode : has_key(f, mode) && has_key(c, f[mode]) ? f[mode] : 'normal' - let left = d ==# 'tabline' ? s:lightline.tabline.left : d ==# 'inactive' ? s:lightline.inactive.left : s:lightline.active.left - let right = d ==# 'tabline' ? s:lightline.tabline.right : d ==# 'inactive' ? s:lightline.inactive.right : s:lightline.active.right - let ls = has_key(get(c, d, {}), 'left') ? c[d].left : has_key(f, d) && has_key(get(c, f[d], {}), 'left') ? c[f[d]].left : c.normal.left - let ms = has_key(get(c, d, {}), 'middle') ? c[d].middle[0] : has_key(f, d) && has_key(get(c, f[d], {}), 'middle') ? c[f[d]].middle[0] : c.normal.middle[0] - let rs = has_key(get(c, d, {}), 'right') ? c[d].right : has_key(f, d) && has_key(get(c, f[d], {}), 'right') ? c[f[d]].right : c.normal.right - for [p, l, zs] in [['Left', len(left), ls], ['Right', len(right), rs]] - for [i, t] in map(range(0, l), '[v:val, 0]') + types - if i < l || i < 1 - let r = t ? (has_key(get(c, d, []), i) ? c[d][i][0] : has_key(get(c, 'tabline', {}), i) ? c.tabline[i][0] : get(c.normal, i, zs)[0]) : get(zs, i, ms) - exec printf('hi LightLine%s_%s_%s guifg=%s guibg=%s ctermfg=%s ctermbg=%s %s', p, mode, i, r[0], r[1], r[2], r[3], s:term(r)) - endif - for [j, s] in map(range(0, l), '[v:val, 0]') + types - if i + 1 == j || t || s && i != l - let q = s ? (has_key(get(c, d, []), j) ? c[d][j][0] : has_key(get(c, 'tabline', {}), j) ? c.tabline[j][0] : get(c.normal, j, zs)[0]) : (j != l ? get(zs, j, ms) :ms) - exec printf('hi LightLine%s_%s_%s_%s guifg=%s guibg=%s ctermfg=%s ctermbg=%s', p, mode, i, j, r[1], q[1], r[3], q[3]) - endif - endfor - endfor - endfor - exec printf('hi LightLineMiddle_%s guifg=%s guibg=%s ctermfg=%s ctermbg=%s %s', mode, ms[0], ms[1], ms[2], ms[3], s:term(ms)) - endfor -endfunction - -function! s:subseparator(components, subseparator, expanded) abort - let [a, c, f, v] = [ a:components, s:lightline.component, s:lightline.component_function, s:lightline.component_visible_condition ] - let xs = map(range(len(a:components)), 'a:expanded[v:val] ? "1" : - \ has_key(f, a[v:val]) ? (exists("*".f[a[v:val]]) ? "" : "exists(\"*".f[a[v:val]]."\")&&").f[a[v:val]]."()!=#\"\"" : - \ has_key(v, a[v:val]) ? "(" . v[a[v:val]] . ")" : has_key(c, a[v:val]) ? "1" : "0"') - return '%{' . (xs[0] ==# '1' ? '' : xs[0] . '&&(') . join(xs[1:], '||') . (xs[0] ==# '1' ? '' : ')') . '?"' . a:subseparator . '":""}' -endfunction - -function! lightline#concatenate(xs, right) abort - let separator = a:right ? s:lightline.subseparator.right : s:lightline.subseparator.left - return join(filter(copy(a:xs), 'v:val !=# ""'), ' ' . separator . ' ') -endfunction - -function! lightline#statusline(inactive) abort - if a:inactive && !has_key(s:highlight, 'inactive') - call lightline#highlight('inactive') - endif - return s:line(0, a:inactive) -endfunction - -function! s:normalize(result) abort - if type(a:result) == 3 - return map(a:result, 'type(v:val) == 1 ? v:val : string(v:val)') - elseif type(a:result) == 1 - return [a:result] - else - return [string(a:result)] - endif -endfunction - -function! s:evaluate_expand(component) abort - try - let result = call(a:component, []) - if type(result) == 1 && result ==# '' - return [] - endif - catch - return [] - endtry - return map(type(result) == 3 ? (result + [[], [], []])[:2] : [[], [result], []], 'filter(s:normalize(v:val), "v:val !=# ''''")') -endfunction - -function! s:convert(name, index) abort - if has_key(s:lightline.component_expand, a:name) - let type = get(s:lightline.component_type, a:name, a:index) - return filter(s:map(s:evaluate_expand(s:lightline.component_expand[a:name]), '[v:val, 1, v:key == 1 ? "' . type . '" : "' . a:index . '"]'), 'v:val[0] != []') - else - return [[[a:name], 0, a:index]] - endif -endfunction - -function! s:flatten_twice(xss) abort - let ys = [] - for xs in a:xss - for x in xs - let ys += x - endfor - endfor - return ys -endfunction - -if v:version > 702 || v:version == 702 && has('patch295') - let s:map = function('map') -else - function! s:map(xs, f) abort - let ys = [] - for i in range(len(a:xs)) - call extend(ys, map(a:xs[(i):(i)], substitute(a:f, 'v:key', i, 'g'))) - endfor - return ys - endfunction -endif - -function! s:expand(components) abort - let components = [] - let expanded = [] - let indices = [] - let previndex = -1 - let xs = s:flatten_twice(s:map(deepcopy(a:components), 'map(v:val, "s:convert(v:val, ''" . v:key . "'')")')) - for [component, expand, index] in xs - if previndex != index - call add(indices, index) - call add(components, []) - call add(expanded, []) - endif - call extend(components[-1], component) - call extend(expanded[-1], repeat([expand], len(component))) - let previndex = index - endfor - call add(indices, string(len(a:components))) - return [components, expanded, indices] -endfunction - -function! s:line(tabline, inactive) abort - let _ = a:tabline ? '' : '%{lightline#link()}' - if s:lightline.palette == {} - call lightline#colorscheme() - endif - let [l, r] = a:tabline ? [s:lightline.tab_llen, s:lightline.tab_rlen] : [s:lightline.llen, s:lightline.rlen] - let [p, s] = a:tabline ? [s:lightline.tabline_separator, s:lightline.tabline_subseparator] : [s:lightline.separator, s:lightline.subseparator] - let [c, f, t] = [s:lightline.component, s:lightline.component_function, s:lightline.component_type] - let mode = a:tabline ? 'tabline' : a:inactive ? 'inactive' : 'active' - let l_ = has_key(s:lightline, mode) ? s:lightline[mode].left : s:lightline.active.left - let [lt, lc, ll] = s:expand(copy(l_)) - let r_ = has_key(s:lightline, mode) ? s:lightline[mode].right : s:lightline.active.right - let [rt, rc, rl] = s:expand(copy(r_)) - for i in range(len(lt)) - let _ .= '%#LightLineLeft_' . mode . '_' . ll[i] . '#' - for j in range(len(lt[i])) - let x = lc[i][j] ? lt[i][j] : has_key(f, lt[i][j]) ? (exists('*' . f[lt[i][j]]) ? '%{' . f[lt[i][j]] . '()}' : '%{exists("*' . f[lt[i][j]] . '")?' . f[lt[i][j]] . '():""}') : get(c, lt[i][j], '') - let _ .= has_key(t, lt[i][j]) && t[lt[i][j]] ==# 'raw' || x ==# '' ? x : '%( ' . x . ' %)' - if j < len(lt[i]) - 1 && s.left !=# '' - let _ .= s:subseparator(lt[i][(j):], s.left, lc[i][(j):]) - endif - endfor - let _ .= '%#LightLineLeft_' . mode . '_' . ll[i] . '_' . ll[i + 1] . '#' - let _ .= i < l + len(lt) - len(l_) && ll[i] < l || ll[i] != ll[i + 1] ? p.left : len(lt[i]) ? s.left : '' - endfor - let _ .= '%#LightLineMiddle_' . mode . '#%=' - for i in reverse(range(len(rt))) - let _ .= '%#LightLineRight_' . mode . '_' . rl[i] . '_' . rl[i + 1] . '#' - let _ .= i < r + len(rt) - len(r_) && rl[i] < r || rl[i] != rl[i + 1] ? p.right : len(rt[i]) ? s.right : '' - let _ .= '%#LightLineRight_' . mode . '_' . rl[i] . '#' - for j in range(len(rt[i])) - let x = rc[i][j] ? rt[i][j] : has_key(f, rt[i][j]) ? (exists('*' . f[rt[i][j]]) ? '%{' . f[rt[i][j]] . '()}' : '%{exists("*' . f[rt[i][j]] . '")?' . f[rt[i][j]] . '():""}') : get(c, rt[i][j], '') - let _ .= has_key(t, rt[i][j]) && t[rt[i][j]] ==# 'raw' || x ==# '' ? x : '%( ' . x . ' %)' - if j < len(rt[i]) - 1 && s.right !=# '' - let _ .= s:subseparator(rt[i][(j):], s.right, rc[i][(j):]) - endif - endfor - endfor - return _ -endfunction - -let s:tabnr = -1 -let s:tabcnt = -1 -let s:tabline = '' -function! lightline#tabline() abort - if !has_key(s:highlight, 'tabline') - call lightline#highlight('tabline') - endif - if s:lightline.tabline_configured || s:tabnr != tabpagenr() || s:tabcnt != tabpagenr('$') - let s:tabnr = tabpagenr() - let s:tabcnt = tabpagenr('$') - let s:tabline = s:line(1, 0) - endif - return s:tabline -endfunction - -function! lightline#tabs() abort - let [x, y, z] = [[], [], []] - let nr = tabpagenr() - let cnt = tabpagenr('$') - for i in range(1, cnt) - call add(i < nr ? x : i == nr ? y : z, '%'. i . 'T%{lightline#onetab(' . i . ',' . (i == nr) . ')}' . (i == cnt ? '%T' : '')) - endfor - let abbr = '...' - let n = min([max([s:lightline.winwidth / 40, 2]), 8]) - if len(x) > n && len(z) > n - let x = extend(add(x[:n/2-1], abbr), x[-(n+1)/2:]) - let z = extend(add(z[:(n+1)/2-1], abbr), z[-n/2:]) - elseif len(x) + len(z) > 2 * n - if len(x) > n - let x = extend(add(x[:(2*n-len(z))/2-1], abbr), x[-(2*n-len(z)+1)/2:]) - elseif len(z) > n - let z = extend(add(z[:(2*n-len(x)+1)/2-1], abbr), z[-(2*n-len(x))/2:]) - endif - endif - return [x, y, z] -endfunction - -function! lightline#onetab(n, active) abort - let _ = [] - for name in a:active ? s:lightline.tab.active : s:lightline.tab.inactive - if has_key(s:lightline.tab_component_function, name) - call add(_, call(s:lightline.tab_component_function[name], [a:n])) - else - call add(_, get(s:lightline.tab_component, name, '')) - endif - endfor - return join(filter(_, 'v:val !=# ""'), ' ') -endfunction - -function! lightline#error(msg) abort - echohl ErrorMsg - echomsg 'lightline.vim: '.a:msg - echohl None -endfunction - -let &cpo = s:save_cpo -unlet s:save_cpo diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme.vim deleted file mode 100644 index de23eb5..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme.vim +++ /dev/null @@ -1,228 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme.vim -" Author: itchyny -" License: MIT License -" Last Change: 2015/03/18 08:37:17. -" ============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -let s:cuicolor = { - \ 'black' : 16, - \ 'white' : 231, - \ - \ 'darkestgreen' : 22, - \ 'darkgreen' : 28, - \ 'mediumgreen' : 70, - \ 'brightgreen' : 148, - \ - \ 'darkestcyan' : 23, - \ 'mediumcyan' : 117, - \ - \ 'darkestblue' : 24, - \ 'darkblue' : 31, - \ - \ 'darkestred' : 52, - \ 'darkred' : 88, - \ 'mediumred' : 124, - \ 'brightred' : 160, - \ 'brightestred' : 196, - \ - \ 'darkestpurple' : 55, - \ 'mediumpurple' : 98, - \ 'brightpurple' : 189, - \ - \ 'brightorange' : 208, - \ 'brightestorange': 214, - \ - \ 'gray0' : 233, - \ 'gray1' : 235, - \ 'gray2' : 236, - \ 'gray3' : 239, - \ 'gray4' : 240, - \ 'gray5' : 241, - \ 'gray6' : 244, - \ 'gray7' : 245, - \ 'gray8' : 247, - \ 'gray9' : 250, - \ 'gray10' : 252, - \ - \ 'yellow' : 136, - \ 'orange' : 166, - \ 'red' : 160, - \ 'magenta' : 125, - \ 'violet' : 61, - \ 'blue' : 33, - \ 'cyan' : 37, - \ 'green' : 64, - \ } - -let s:guicolor = { - \ 'black' : '#000000', - \ 'white' : '#ffffff', - \ - \ 'darkestgreen' : '#005f00', - \ 'darkgreen' : '#008700', - \ 'mediumgreen' : '#5faf00', - \ 'brightgreen' : '#afdf00', - \ - \ 'darkestcyan' : '#005f5f', - \ 'mediumcyan' : '#87dfff', - \ - \ 'darkestblue' : '#005f87', - \ 'darkblue' : '#0087af', - \ - \ 'darkestred' : '#5f0000', - \ 'darkred' : '#870000', - \ 'mediumred' : '#af0000', - \ 'brightred' : '#df0000', - \ 'brightestred' : '#ff0000', - \ - \ 'darkestpurple' : '#5f00af', - \ 'mediumpurple' : '#875fdf', - \ 'brightpurple' : '#dfdfff', - \ - \ 'brightorange' : '#ff8700', - \ 'brightestorange': '#ffaf00', - \ - \ 'gray0' : '#121212', - \ 'gray1' : '#262626', - \ 'gray2' : '#303030', - \ 'gray3' : '#4e4e4e', - \ 'gray4' : '#585858', - \ 'gray5' : '#606060', - \ 'gray6' : '#808080', - \ 'gray7' : '#8a8a8a', - \ 'gray8' : '#9e9e9e', - \ 'gray9' : '#bcbcbc', - \ 'gray10' : '#d0d0d0', - \ - \ 'yellow' : '#b58900', - \ 'orange' : '#cb4b16', - \ 'red' : '#dc322f', - \ 'magenta' : '#d33682', - \ 'violet' : '#6c71c4', - \ 'blue' : '#268bd2', - \ 'cyan' : '#2aa198', - \ 'green' : '#859900', - \ } - -function! s:convert(rgb) abort - let rgb = map(matchlist(a:rgb, '#\(..\)\(..\)\(..\)')[1:3], '0 + ("0x".v:val)') - if len(rgb) == 0 - return 0 - endif - if rgb[0] == 0xc0 && rgb[1] == 0xc0 && rgb[2] == 0xc0 - return 7 - elseif rgb[0] == 0x80 && rgb[1] == 0x80 && rgb[2] == 0x80 - return 8 - elseif (rgb[0] == 0x80 || rgb[0] == 0x00) && (rgb[1] == 0x80 || rgb[1] == 0x00) && (rgb[2] == 0x80 || rgb[2] == 0x00) - return (rgb[0] / 0x80) + (rgb[1] / 0x80) * 2 + (rgb[1] / 0x80) * 4 - elseif abs(rgb[0]-rgb[1]) < 3 && abs(rgb[1]-rgb[2]) < 3 && abs(rgb[2]-rgb[0]) < 3 - return s:black((rgb[0] + rgb[1] + rgb[2]) / 3) - else - return 16 + ((s:nr(rgb[0]) * 6) + s:nr(rgb[1])) * 6 + s:nr(rgb[2]) - endif -endfunction - -function! s:black(x) abort - if a:x < 0x04 - return 16 - elseif a:x > 0xf4 - return 231 - elseif index([0x00, 0x5f, 0x87, 0xaf, 0xdf, 0xff], a:x) >= 0 - let l = a:x / 0x30 - return ((l * 6) + l) * 6 + l + 16 - else - return 232 + (a:x < 8 ? 0 : a:x < 0x60 ? (a:x-8)/10 : a:x < 0x76 ? (a:x-0x60)/6+9 : (a:x-8)/10) - endif -endfunction - -function! s:nr(x) abort - return a:x < 0x2f ? 0 : a:x < 0x73 ? 1 : a:x < 0x9b ? 2 : a:x < 0xc7 ? 3 : a:x < 0xef ? 4 : 5 -endfunction - -function! s:rgb(r, g, b) abort - return printf('#%02x%02x%02x', a:r, a:g, a:b) -endfunction - -function! s:upconvert(nr) abort - let x = a:nr * 1 - if x < 7 - let [b, rg] = [x / 4, x % 4] - let [g, r] = [rg / 2, rg % 2] - return s:rgb(r * 0x80, g * 0x80, b * 0x80) - elseif x == 7 - return s:rgb(0xc0, 0xc0, 0xc0) - elseif x == 8 - return s:rgb(0x80, 0x80, 0x80) - elseif x < 16 - let y = x - 8 - let [b, rg] = [y / 4, y % 4] - let [g, r] = [rg / 2, rg % 2] - return s:rgb(r * 0xff, g * 0xff, b * 0xff) - elseif x < 232 - let y = x - 16 - let [rg, b] = [y / 6, y % 6] - let [r, g] = [rg / 6, rg % 6] - let l = [0x00, 0x5f, 0x87, 0xaf, 0xdf, 0xff] - return s:rgb(l[r], l[g], l[b]) - elseif x < 241 - let k = (x - 232) * 10 + 8 - return s:rgb(k, k, k) - elseif x < 243 - let k = (x - 241) * 6 + 0x60 - return s:rgb(k, k, k) - else - let k = (x - 232) * 10 + 8 - return s:rgb(k, k, k) - endif -endfunction - -function! lightline#colorscheme#fill(p) abort - for k in values(a:p) - for l in values(k) - for m in l - if len(m) < 4 - if type(m[0]) == 1 && type(m[1]) == 1 - if m[0] =~# '^\d\+$' && m[1] =~# '^\d\+$' - call insert(m, s:upconvert(m[1]), 0) - call insert(m, s:upconvert(m[1]), 0) - else - call insert(m, get(s:cuicolor, m[0], s:convert(m[0])), 2) - call insert(m, get(s:cuicolor, m[1], s:convert(m[1])), 3) - let m[0] = get(s:guicolor, m[0], m[0]) - let m[1] = get(s:guicolor, m[1], m[1]) - endif - elseif type(m[0]) == 0 && type(m[1]) == 0 - call insert(m, s:upconvert(m[1]), 0) - call insert(m, s:upconvert(m[1]), 0) - endif - endif - endfor - endfor - endfor - return a:p -endfunction - -function! lightline#colorscheme#flatten(p) abort - for k in values(a:p) - for l in values(k) - for m in range(len(l)) - let attr = '' - if len(l[m]) == 3 && type(l[m][2]) == 1 - let attr = l[m][2] - endif - let l[m] = [l[m][0][0], l[m][1][0], l[m][0][1], l[m][1][1]] - if !empty(attr) - call add(l[m], attr) - endif - endfor - endfor - endfor - return a:p -endfunction - -let &cpo = s:save_cpo -unlet s:save_cpo diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/16color.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/16color.vim deleted file mode 100644 index 170aa93..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/16color.vim +++ /dev/null @@ -1,46 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/16color.vim -" Author: itchyny -" License: MIT License -" Last Change: 2014/01/02 10:04:03. -" ============================================================================= -let s:base03 = [ '#808080', 8 ] -let s:base02 = [ '#000000', 0 ] -let s:base01 = [ '#00ff00', 10 ] -let s:base00 = [ '#ffff00', 11 ] -let s:base0 = [ '#0000ff', 12 ] -let s:base1 = [ '#00ffff', 14 ] -let s:base2 = [ '#c0c0c0', 7 ] -let s:base3 = [ '#ffffff', 15 ] -let s:yellow = [ '#808000', 3 ] -let s:orange = [ '#ff0000', 9 ] -let s:red = [ '#800000', 1 ] -let s:magenta = [ '#800080', 5 ] -let s:violet = [ '#ff00ff', 13 ] -let s:blue = [ '#000080', 4 ] -let s:cyan = [ '#008080', 6 ] -let s:green = [ '#008000', 2 ] -if &background ==# 'light' - let [s:base03, s:base3] = [s:base3, s:base03] - let [s:base02, s:base2] = [s:base2, s:base02] - let [s:base01, s:base1] = [s:base1, s:base01] - let [s:base00, s:base0] = [s:base0, s:base00] -endif -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base3, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base01 ], [ s:base00, s:base02 ] ] -let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ] -let s:p.insert.left = [ [ s:base3, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base3, s:red ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base3, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base1, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base0, s:base02 ] ] -let s:p.tabline.left = [ [ s:base2, s:base01 ] ] -let s:p.tabline.tabsel = [ [ s:base2, s:base02 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base2 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:base2, s:red ] ] -let s:p.normal.warning = [ [ s:base02, s:yellow ] ] - -let g:lightline#colorscheme#16color#palette = lightline#colorscheme#flatten(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor.vim deleted file mode 100644 index 429439d..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor.vim +++ /dev/null @@ -1,12 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/PaperColor.vim -" Author: TKNGUE -" License: MIT License -" Last Change: 2015/07/28 07:35:00. -" ============================================================================= - -if &background ==# 'light' - let g:lightline#colorscheme#PaperColor#palette = g:lightline#colorscheme#PaperColor_light#palette -else - let g:lightline#colorscheme#PaperColor#palette = g:lightline#colorscheme#PaperColor_dark#palette -endif diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor_dark.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor_dark.vim deleted file mode 100644 index 0a70b34..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor_dark.vim +++ /dev/null @@ -1,60 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/PaperColor_dark.vim -" Author: TKNGUE -" License: MIT License -" Last Change: 2015-07-27 06:01 -" ============================================================================= - -let s:red = '#df0000' -let s:green = '#008700' -let s:blue = '#00afaf' - -let s:pink = '#afdf00' -let s:olive = '#dfaf5f' -let s:navy = '#df875f' - -let s:orange = '#d75f00' -let s:purple = '#8959a8' -let s:aqua = '#3e999f' - -" Basics: -let s:foreground = '#d0d0d0' -let s:background = '#444444' -let s:window = '#efefef' -let s:status = '#c6c6c6' -let s:error = '#5f0000' - -" Tabline: -let s:tabline_bg = '#3a3a3a' -let s:tabline_active_fg = '#1c1c1c' -let s:tabline_active_bg = '#00afaf' -let s:tabline_inactive_fg = '#c6c6c6' -let s:tabline_inactive_bg = '#585858' - -" Statusline: -let s:statusline_active_fg = '#1c1c1c' -let s:statusline_active_bg = '#5f8787' -let s:statusline_inactive_fg = '#c6c6c6' -let s:statusline_inactive_bg = '#444444' - -" Visual: -let s:visual_fg = '#000000' -let s:visual_bg = '#8787af' - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:foreground, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.normal.right = [ [ s:foreground, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.normal.middle = [ [ s:statusline_active_fg, s:statusline_active_bg ]] -let s:p.inactive.right = [ [ s:foreground, s:background ], [ s:foreground, s:background ] ] -let s:p.inactive.left = [ [ s:foreground, s:background ], [ s:foreground, s:background ] ] -let s:p.inactive.middle = [ [ s:foreground, s:background ], ] -let s:p.insert.left = [ [ s:background, s:blue], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.replace.left = [ [ s:background, s:pink ], [s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.visual.left = [ [ s:visual_fg, s:visual_bg ], [s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.tabline.left = [ [s:tabline_inactive_fg, s:tabline_inactive_bg ]] -let s:p.tabline.tabsel = [ [s:tabline_active_fg, s:tabline_active_bg ] ] -let s:p.tabline.middle = [ [s:tabline_bg, s:tabline_bg]] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:background, s:error ] ] - -let g:lightline#colorscheme#PaperColor_dark#palette = lightline#colorscheme#fill(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor_light.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor_light.vim deleted file mode 100644 index aef0b86..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/PaperColor_light.vim +++ /dev/null @@ -1,55 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/PaperColor_light.vim -" Author: TKNGUE -" License: MIT License -" Last Change: 2015/07/28 07:46:40. -" ============================================================================= - -let s:red = '#df0000' -let s:green = '#008700' -let s:blue = '#4271ae' -let s:pink = '#d7005f' -let s:olive = '#718c00' -let s:navy = '#005f87' -let s:orange = '#d75f00' -let s:purple = '#8959a8' -let s:aqua = '#3e999f' - -" Basics: -let s:foreground = '#4d4d4c' -let s:background = '#F5F5F5' -let s:window = '#efefef' -let s:status = s:aqua -let s:error = '#ffafdf' - -" Tabline: -let s:tabline_bg = s:navy -let s:tabline_active_fg = s:foreground -let s:tabline_active_bg = s:window -let s:tabline_inactive_fg = s:background -let s:tabline_inactive_bg = s:aqua - -" Statusline: -let s:statusline_active_fg = s:window -let s:statusline_active_bg = s:navy -let s:statusline_inactive_fg = s:foreground -let s:statusline_inactive_bg = '#dadada' - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:foreground, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.normal.right = [ [ s:foreground, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.normal.middle = [ [ s:statusline_active_fg, s:statusline_active_bg ]] -let s:p.inactive.right = [ [ s:foreground, s:background ], [ s:foreground, s:background ] ] -let s:p.inactive.left = [ [ s:foreground, s:background ], [ s:foreground, s:background ] ] -let s:p.inactive.middle = [ [ s:foreground, s:background ], ] -let s:p.insert.left = [ [ s:blue, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.replace.left = [ [ s:background, s:pink ], [s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.visual.left = [ [ s:background, s:orange ], [s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ] -let s:p.tabline.left = [ [s:tabline_inactive_fg, s:tabline_inactive_bg ]] -let s:p.tabline.tabsel = [ [s:tabline_active_fg, s:tabline_active_bg ] ] -let s:p.tabline.middle = [ [s:tabline_bg, s:tabline_bg]] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:background, s:error ] ] -let s:p.normal.warning = [ [ s:background, s:olive ] ] - -let g:lightline#colorscheme#PaperColor_light#palette = lightline#colorscheme#fill(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow.vim deleted file mode 100644 index 8255966..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow.vim +++ /dev/null @@ -1,41 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/Tomorrow.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/09/07 12:22:37. -" ============================================================================= -let s:base03 = '#fafafa' -let s:base023 = '#dfdfdf' -let s:base02 = '#c8c8c8' -let s:base01 = '#b4b4b4' -let s:base00 = '#808080' -let s:base0 = '#666666' -let s:base1 = '#555555' -let s:base2 = '#4f4f4f' -let s:base3 = '#4d4d4c' -let s:red = '#c82829' -let s:orange = '#f5871f' -let s:yellow = '#eab700' -let s:green = '#718c00' -let s:cyan = '#3e999f' -let s:blue = '#4271ae' -let s:magenta = '#8959a8' - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base00, s:base02 ] ] -let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base03 ] ] -let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base02, s:orange ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base1, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base0, s:base02 ] ] -let s:p.tabline.left = [ [ s:base2, s:base01 ] ] -let s:p.tabline.tabsel = [ [ s:base2, s:base023 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base00 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:red, s:base01 ] ] -let s:p.normal.warning = [ [ s:yellow, s:base0 ] ] - -let g:lightline#colorscheme#Tomorrow#palette = lightline#colorscheme#fill(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night.vim deleted file mode 100644 index 8903180..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night.vim +++ /dev/null @@ -1,41 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/Tomorrow_Night.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/09/07 12:23:38. -" ============================================================================= -let s:base3 = '#c5c8c6' -let s:base2 = '#bababa' -let s:base1 = '#a0a0a0' -let s:base0 = '#909090' -let s:base00 = '#666666' -let s:base01 = '#555555' -let s:base02 = '#434343' -let s:base023 = '#303030' -let s:base03 = '#1d1f21' -let s:red = '#cc6666' -let s:orange = '#de935f' -let s:yellow = '#f0c674' -let s:green = '#b5bd68' -let s:cyan = '#8abeb7' -let s:blue = '#81a2be' -let s:magenta = '#b294bb' - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base00, s:base02 ] ] -let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base03 ] ] -let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base02, s:orange ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base1, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base0, s:base02 ] ] -let s:p.tabline.left = [ [ s:base2, s:base01 ] ] -let s:p.tabline.tabsel = [ [ s:base2, s:base023 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base0 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:red, s:base023 ] ] -let s:p.normal.warning = [ [ s:yellow, s:base02 ] ] - -let g:lightline#colorscheme#Tomorrow_Night#palette = lightline#colorscheme#fill(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim deleted file mode 100644 index 31c27f3..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim +++ /dev/null @@ -1,43 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/09/07 14:13:21. -" ============================================================================= -let s:base3 = '#ffffff' -let s:base23 = '#ffffff' -let s:base2 = '#ffffff' -let s:base1 = '#ffffff' -let s:base0 = '#ffffff' -let s:base00 = '#6060df' -let s:base01 = '#6060af' -let s:base02 = '#606087' -let s:base023 = '#202087' -let s:base03 = '#002451' -let s:red = '#ff9da4' -let s:orange = '#ffc58f' -let s:yellow = '#ffeead' -let s:green = '#d1f1a9' -let s:cyan = '#99ffff' -let s:blue = '#bbdaff' -let s:magenta = '#ebbbff' - - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base023, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.left = [ [ s:base02, s:base0 ], [ s:base00, s:base03 ] ] -let s:p.insert.left = [ [ s:base023, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base023, s:orange ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base023, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base1, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base0, s:base02 ] ] -let s:p.tabline.left = [ [ s:base2, s:base01 ] ] -let s:p.tabline.tabsel = [ [ s:base2, s:base03 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base1 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:base023, s:red ] ] -let s:p.normal.warning = [ [ s:base023, s:yellow ] ] - -let g:lightline#colorscheme#Tomorrow_Night_Blue#palette = lightline#colorscheme#fill(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim deleted file mode 100644 index 5b81a31..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim +++ /dev/null @@ -1,42 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/09/07 14:13:26. -" ============================================================================= -let s:base3 = '#eaeaea' -let s:base23 = '#d0d0d0' -let s:base2 = '#c6c6c6' -let s:base1 = '#b2b2b2' -let s:base0 = '#949494' -let s:base00 = '#767676' -let s:base01 = '#606060' -let s:base02 = '#4e4e4e' -let s:base023 = '#262626' -let s:base03 = '#12124c' -let s:red = '#d54e53' -let s:orange = '#e78c45' -let s:yellow = '#e7c547' -let s:green = '#b9ca4a' -let s:cyan = '#70c0b1' -let s:blue = '#7aa6da' -let s:magenta = '#c397d8' - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base023, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.left = [ [ s:base02, s:base0 ], [ s:base00, s:base03 ] ] -let s:p.insert.left = [ [ s:base023, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base023, s:orange ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base023, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base1, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base0, s:base02 ] ] -let s:p.tabline.left = [ [ s:base2, s:base01 ] ] -let s:p.tabline.tabsel = [ [ s:base2, s:base023 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base1 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:red, s:base023 ] ] -let s:p.normal.warning = [ [ s:yellow, s:base02 ] ] - -let g:lightline#colorscheme#Tomorrow_Night_Bright#palette = lightline#colorscheme#fill(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim deleted file mode 100644 index 5124ecc..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim +++ /dev/null @@ -1,42 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/09/07 14:14:14. -" ============================================================================= -let s:base3 = '#cccccc' -let s:base23 = '#bbbbbb' -let s:base2 = '#aaaaaa' -let s:base1 = '#999999' -let s:base0 = '#777777' -let s:base00 = '#666666' -let s:base01 = '#555555' -let s:base02 = '#444444' -let s:base023 = '#333333' -let s:base03 = '#2d2d2d' -let s:red = '#f2777a' -let s:orange = '#f99157' -let s:yellow = '#ffcc66' -let s:green = '#99cc99' -let s:cyan = '#009999' -let s:blue = '#99cccc' -let s:magenta = '#cc99cc' - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base023, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.left = [ [ s:base02, s:base0 ], [ s:base00, s:base03 ] ] -let s:p.insert.left = [ [ s:base023, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base023, s:orange ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base023, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base1, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base0, s:base02 ] ] -let s:p.tabline.left = [ [ s:base2, s:base01 ] ] -let s:p.tabline.tabsel = [ [ s:base2, s:base03 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base1 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:base023, s:red ] ] -let s:p.normal.warning = [ [ s:base023, s:yellow ] ] - -let g:lightline#colorscheme#Tomorrow_Night_Eighties#palette = lightline#colorscheme#fill(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/default.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/default.vim deleted file mode 100644 index ee9835c..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/default.vim +++ /dev/null @@ -1,8 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/default.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/08/22 06:05:52. -" ============================================================================= - -let g:lightline#colorscheme#default#palette = g:lightline#colorscheme#powerline#palette diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/jellybeans.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/jellybeans.vim deleted file mode 100644 index 15b2b35..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/jellybeans.vim +++ /dev/null @@ -1,40 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/jellybeans.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/09/07 12:21:04. -" ============================================================================= -let s:base03 = [ '#151513', 233 ] -let s:base02 = [ '#30302c ', 236 ] -let s:base01 = [ '#4e4e43', 239 ] -let s:base00 = [ '#666656', 242 ] -let s:base0 = [ '#808070', 244 ] -let s:base1 = [ '#949484', 246 ] -let s:base2 = [ '#a8a897', 248 ] -let s:base3 = [ '#e8e8d3', 253 ] -let s:yellow = [ '#ffb964', 215 ] -let s:orange = [ '#fad07a', 222 ] -let s:red = [ '#cf6a4c', 167 ] -let s:magenta = [ '#f0a0c0', 217 ] -let s:blue = [ '#8197bf', 103 ] -let s:cyan = [ '#8fbfdc', 110 ] -let s:green = [ '#99ad6a', 107 ] - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base0, s:base02 ] ] -let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ] -let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base02, s:red ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base0, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base00, s:base02 ] ] -let s:p.tabline.left = [ [ s:base3, s:base00 ] ] -let s:p.tabline.tabsel = [ [ s:base3, s:base02 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base1 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:red, s:base02 ] ] -let s:p.normal.warning = [ [ s:yellow, s:base01 ] ] - -let g:lightline#colorscheme#jellybeans#palette = lightline#colorscheme#flatten(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/landscape.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/landscape.vim deleted file mode 100644 index 68d0920..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/landscape.vim +++ /dev/null @@ -1,25 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/landscape.vim -" Author: itchyny -" License: MIT License -" Last Change: 2015/11/26 21:49:44. -" ============================================================================= - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ ['#0000ff', '#ffffff', 21, 231, 'bold' ], [ '#ffffff', '#0000ff', 231, 21 ] ] -let s:p.normal.right = [ [ '#303030', '#d0d0d0', 236, 252 ], [ '#303030', '#8a8a8a', 236, 245 ], [ '#bcbcbc', '#585858', 250, 240 ] ] -let s:p.inactive.right = [ [ '#121212', '#606060', 233, 241 ], [ '#121212', '#3a3a3a', 233, 237 ], [ '#121212', '#262626', 233, 235 ] ] -let s:p.inactive.left = s:p.inactive.right[1:] -let s:p.insert.left = [ ['#005f00', '#ffffff', 22, 231, 'bold' ], [ '#ffffff', '#005f00', 231, 22 ] ] -let s:p.replace.left = [ [ '#af0000', '#ffffff', 124, 231, 'bold' ], [ '#ffffff', '#af0000', 231, 124 ] ] -let s:p.visual.left = [ [ '#5f00ff', '#ffffff', 57, 231, 'bold' ], [ '#ffffff', '#5f00ff', 231, 57 ] ] -let s:p.normal.middle = [ [ '#8a8a8a', '#303030', 245, 236 ] ] -let s:p.inactive.middle = [ [ '#303030', '#121212', 236, 233 ] ] -let s:p.tabline.left = [ [ '#d0d0d0', '#666666', 252, 242 ] ] -let s:p.tabline.tabsel = [ [ '#dadada', '#121212', 253, 233 ] ] -let s:p.tabline.middle = [ [ '#8a8a8a', '#3a3a3a', 245, 237 ] ] -let s:p.tabline.right = [ [ '#d0d0d0', '#666666', 252, 242 ] ] -let s:p.normal.error = [ [ '#d0d0d0', '#ff0000', 252, 196 ] ] -let s:p.normal.warning = [ [ '#262626', '#ffff00', 235, 226 ] ] - -let g:lightline#colorscheme#landscape#palette = s:p diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/powerline.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/powerline.vim deleted file mode 100644 index 40e48d4..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/powerline.vim +++ /dev/null @@ -1,28 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/powerline.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/09/07 15:54:41. -" ============================================================================= - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ ['darkestgreen', 'brightgreen', 'bold'], ['white', 'gray4'] ] -let s:p.normal.right = [ ['gray5', 'gray10'], ['gray9', 'gray4'], ['gray8', 'gray2'] ] -let s:p.inactive.right = [ ['gray1', 'gray5'], ['gray4', 'gray1'], ['gray4', 'gray0'] ] -let s:p.inactive.left = s:p.inactive.right[1:] -let s:p.insert.left = [ ['darkestcyan', 'white', 'bold'], ['white', 'darkblue'] ] -let s:p.insert.right = [ [ 'darkestcyan', 'mediumcyan' ], [ 'mediumcyan', 'darkblue' ], [ 'mediumcyan', 'darkestblue' ] ] -let s:p.replace.left = [ ['white', 'brightred', 'bold'], ['white', 'gray4'] ] -let s:p.visual.left = [ ['darkred', 'brightorange', 'bold'], ['white', 'gray4'] ] -let s:p.normal.middle = [ [ 'gray7', 'gray2' ] ] -let s:p.insert.middle = [ [ 'mediumcyan', 'darkestblue' ] ] -let s:p.replace.middle = s:p.normal.middle -let s:p.replace.right = s:p.normal.right -let s:p.tabline.left = [ [ 'gray9', 'gray4' ] ] -let s:p.tabline.tabsel = [ [ 'gray9', 'gray1' ] ] -let s:p.tabline.middle = [ [ 'gray2', 'gray8' ] ] -let s:p.tabline.right = [ [ 'gray9', 'gray3' ] ] -let s:p.normal.error = [ [ 'gray9', 'brightestred' ] ] -let s:p.normal.warning = [ [ 'gray1', 'yellow' ] ] - -let g:lightline#colorscheme#powerline#palette = lightline#colorscheme#fill(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/seoul256.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/seoul256.vim deleted file mode 100644 index ca2d5a0..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/seoul256.vim +++ /dev/null @@ -1,42 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/seoul256.vim -" Author: atweiden -" License: MIT License -" Last Change: 2015/11/02 08:23:27. -" ============================================================================= -let s:base03 = [ '#151513', 233 ] -let s:base02 = [ '#30302c ', 236 ] -let s:base01 = [ '#4e4e43', 239 ] -let s:base00 = [ '#666656', 242 ] -let s:base0 = [ '#808070', 244 ] -let s:base1 = [ '#949484', 246 ] -let s:base2 = [ '#a8a897', 248 ] -let s:base3 = [ '#e8e8d3', 253 ] -let s:yellow = [ '#d8af5f', 3 ] -let s:orange = [ '#d7875f', 216 ] -let s:red = [ '#d68787', 131 ] -let s:magenta = [ '#df5f87', 168 ] -let s:peach = [ '#d7afaf', 181 ] -let s:blue = [ '#87afaf', 109 ] -let s:cyan = [ '#87d7d7', 23 ] -let s:green = [ '#87af87', 108 ] -let s:white = [ '#d0d0d0', 252 ] - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base0, s:base02 ] ] -let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ] -let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base02, s:peach ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base0, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base00, s:base02 ] ] -let s:p.tabline.left = [ [ s:base3, s:base00 ] ] -let s:p.tabline.tabsel = [ [ s:base3, s:base02 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base1 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:red, s:base02 ] ] -let s:p.normal.warning = [ [ s:yellow, s:base01 ] ] - -let g:lightline#colorscheme#seoul256#palette = lightline#colorscheme#flatten(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized.vim deleted file mode 100644 index 2695c35..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized.vim +++ /dev/null @@ -1,11 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/solarized.vim -" Author: itchyny -" License: MIT License -" Last Change: 2013/08/27 10:24:28. -" ============================================================================= -if &background ==# 'light' - let g:lightline#colorscheme#solarized#palette = g:lightline#colorscheme#solarized_light#palette -else - let g:lightline#colorscheme#solarized#palette = g:lightline#colorscheme#solarized_dark#palette -endif diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized_dark.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized_dark.vim deleted file mode 100644 index 37a3dc7..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized_dark.vim +++ /dev/null @@ -1,73 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/solarized_dark.vim -" Author: itchyny -" License: MIT License -" Last Change: 2014/05/31 01:04:15. -" ============================================================================= - -let s:cuicolors = { - \ 'base03': [ '8', '234', 'DarkGray' ], - \ 'base02': [ '0', '235', 'Black' ], - \ 'base01': [ '10', '239', 'LightGreen' ], - \ 'base00': [ '11', '240', 'LightYellow' ], - \ 'base0': [ '12', '244', 'LightBlue' ], - \ 'base1': [ '14', '245', 'LightCyan' ], - \ 'base2': [ '7', '187', 'LightGray' ], - \ 'base3': [ '15', '230', 'White' ], - \ 'yellow': [ '3', '136', 'DarkYellow' ], - \ 'orange': [ '9', '166', 'LightRed' ], - \ 'red': [ '1', '124', 'DarkRed' ], - \ 'magenta': [ '5', '125', 'DarkMagenta' ], - \ 'violet': [ '13', '61', 'LightMagenta' ], - \ 'blue': [ '4', '33', 'DarkBlue' ], - \ 'cyan': [ '6', '37', 'DarkCyan' ], - \ 'green': [ '2', '64', 'DarkGreen' ], - \ } - -" The following condition only applies for the console and is the same -" condition vim-colors-solarized uses to determine which set of colors -" to use. -let s:solarized_termcolors = get(g:, 'solarized_termcolors', 256) -if s:solarized_termcolors != 256 && &t_Co >= 16 - let s:cuiindex = 0 -elseif s:solarized_termcolors == 256 - let s:cuiindex = 1 -else - let s:cuiindex = 2 -endif - -let s:base03 = [ '#002b36', s:cuicolors.base03[s:cuiindex] ] -let s:base02 = [ '#073642', s:cuicolors.base02[s:cuiindex] ] -let s:base01 = [ '#586e75', s:cuicolors.base01[s:cuiindex] ] -let s:base00 = [ '#657b83', s:cuicolors.base00[s:cuiindex] ] -let s:base0 = [ '#839496', s:cuicolors.base0[s:cuiindex] ] -let s:base1 = [ '#93a1a1', s:cuicolors.base1[s:cuiindex] ] -let s:base2 = [ '#eee8d5', s:cuicolors.base2[s:cuiindex] ] -let s:base3 = [ '#fdf6e3', s:cuicolors.base3[s:cuiindex] ] -let s:yellow = [ '#b58900', s:cuicolors.yellow[s:cuiindex] ] -let s:orange = [ '#cb4b16', s:cuicolors.orange[s:cuiindex] ] -let s:red = [ '#dc322f', s:cuicolors.red[s:cuiindex] ] -let s:magenta = [ '#d33682', s:cuicolors.magenta[s:cuiindex] ] -let s:violet = [ '#6c71c4', s:cuicolors.violet[s:cuiindex] ] -let s:blue = [ '#268bd2', s:cuicolors.blue[s:cuiindex] ] -let s:cyan = [ '#2aa198', s:cuicolors.cyan[s:cuiindex] ] -let s:green = [ '#859900', s:cuicolors.green[s:cuiindex] ] - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base3, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base01 ], [ s:base00, s:base02 ] ] -let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ] -let s:p.insert.left = [ [ s:base3, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base3, s:red ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base3, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base1, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base0, s:base02 ] ] -let s:p.tabline.left = [ [ s:base1, s:base00 ] ] -let s:p.tabline.tabsel = [ [ s:base3, s:base0 ] ] -let s:p.tabline.middle = [ [ s:base01, s:base02 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:base2, s:red ] ] -let s:p.normal.warning = [ [ s:base02, s:yellow ] ] - -let g:lightline#colorscheme#solarized_dark#palette = lightline#colorscheme#flatten(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized_light.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized_light.vim deleted file mode 100644 index 99046af..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/solarized_light.vim +++ /dev/null @@ -1,80 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/solarized_light.vim -" Author: itchyny -" License: MIT License -" Last Change: 2014/05/31 01:04:21. -" ============================================================================= - -let s:cuicolors = { - \ 'base03': [ '8', '234', 'DarkGray' ], - \ 'base02': [ '0', '235', 'Black' ], - \ 'base01': [ '10', '239', 'LightGreen' ], - \ 'base00': [ '11', '240', 'LightYellow' ], - \ 'base0': [ '12', '244', 'LightBlue' ], - \ 'base1': [ '14', '245', 'LightCyan' ], - \ 'base2': [ '7', '187', 'LightGray' ], - \ 'base3': [ '15', '230', 'White' ], - \ 'yellow': [ '3', '136', 'DarkYellow' ], - \ 'orange': [ '9', '166', 'LightRed' ], - \ 'red': [ '1', '124', 'DarkRed' ], - \ 'magenta': [ '5', '125', 'DarkMagenta' ], - \ 'violet': [ '13', '61', 'LightMagenta' ], - \ 'blue': [ '4', '33', 'DarkBlue' ], - \ 'cyan': [ '6', '37', 'DarkCyan' ], - \ 'green': [ '2', '64', 'DarkGreen' ], - \ } - -" The following condition only applies for the console and is the same -" condition vim-colors-solarized uses to determine which set of colors -" to use. -let s:solarized_termcolors = get(g:, 'solarized_termcolors', 256) -if s:solarized_termcolors != 256 && &t_Co >= 16 - let s:cuiindex = 0 -elseif s:solarized_termcolors == 256 - let s:cuiindex = 1 -else - let s:cuiindex = 2 -endif - -let s:base03 = [ '#002b36', s:cuicolors.base03[s:cuiindex] ] -let s:base02 = [ '#073642', s:cuicolors.base02[s:cuiindex] ] -let s:base01 = [ '#586e75', s:cuicolors.base01[s:cuiindex] ] -let s:base00 = [ '#657b83', s:cuicolors.base00[s:cuiindex] ] -let s:base0 = [ '#839496', s:cuicolors.base0[s:cuiindex] ] -let s:base1 = [ '#93a1a1', s:cuicolors.base1[s:cuiindex] ] -let s:base2 = [ '#eee8d5', s:cuicolors.base2[s:cuiindex] ] -let s:base3 = [ '#fdf6e3', s:cuicolors.base3[s:cuiindex] ] -let s:yellow = [ '#b58900', s:cuicolors.yellow[s:cuiindex] ] -let s:orange = [ '#cb4b16', s:cuicolors.orange[s:cuiindex] ] -let s:red = [ '#dc322f', s:cuicolors.red[s:cuiindex] ] -let s:magenta = [ '#d33682', s:cuicolors.magenta[s:cuiindex] ] -let s:violet = [ '#6c71c4', s:cuicolors.violet[s:cuiindex] ] -let s:blue = [ '#268bd2', s:cuicolors.blue[s:cuiindex] ] -let s:cyan = [ '#2aa198', s:cuicolors.cyan[s:cuiindex] ] -let s:green = [ '#859900', s:cuicolors.green[s:cuiindex] ] - -let [s:base03, s:base3] = [s:base3, s:base03] -let [s:base02, s:base2] = [s:base2, s:base02] -let [s:base01, s:base1] = [s:base1, s:base01] -let [s:base00, s:base0] = [s:base0, s:base00] - -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base3, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.right = [ [ s:base02, s:base01 ], [ s:base00, s:base02 ] ] -let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ] -let s:p.insert.left = [ [ s:base3, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base3, s:red ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base3, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base1, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base0, s:base02 ] ] -let s:p.tabline.left = [ [ s:base2, s:base01 ] ] -let s:p.tabline.tabsel = [ [ s:base2, s:base03 ] ] -let s:p.tabline.middle = [ [ s:base1, s:base02 ] ] -let s:p.tabline.right = copy(s:p.normal.right) -let s:p.normal.error = [ [ s:red, s:base01 ] ] -let s:p.normal.warning = [ [ s:yellow, s:base01 ] ] -let s:p.normal.error = [ [ s:base02, s:red ] ] -let s:p.normal.warning = [ [ s:base2, s:yellow ] ] - -let g:lightline#colorscheme#solarized_light#palette = lightline#colorscheme#flatten(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/wombat.vim b/vim/bundle/lightline.vim/autoload/lightline/colorscheme/wombat.vim deleted file mode 100644 index 9619247..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colorscheme/wombat.vim +++ /dev/null @@ -1,40 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colorscheme/wombat.vim -" Author: itchyny -" License: MIT License -" Last Change: 2015/11/30 08:37:43. -" ============================================================================= -let s:base03 = [ '#242424', 235 ] -let s:base023 = [ '#353535 ', 236 ] -let s:base02 = [ '#444444 ', 238 ] -let s:base01 = [ '#585858', 240 ] -let s:base00 = [ '#666666', 242 ] -let s:base0 = [ '#808080', 244 ] -let s:base1 = [ '#969696', 247 ] -let s:base2 = [ '#a8a8a8', 248 ] -let s:base3 = [ '#d0d0d0', 252 ] -let s:yellow = [ '#cae682', 180 ] -let s:orange = [ '#e5786d', 173 ] -let s:red = [ '#e5786d', 203 ] -let s:magenta = [ '#f2c68a', 216 ] -let s:blue = [ '#8ac6f2', 117 ] -let s:cyan = s:blue -let s:green = [ '#95e454', 119 ] -let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}} -let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ] -let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ] -let s:p.inactive.right = [ [ s:base023, s:base01 ], [ s:base00, s:base02 ] ] -let s:p.inactive.left = [ [ s:base1, s:base02 ], [ s:base00, s:base023 ] ] -let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ] -let s:p.replace.left = [ [ s:base023, s:red ], [ s:base3, s:base01 ] ] -let s:p.visual.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ] -let s:p.normal.middle = [ [ s:base2, s:base02 ] ] -let s:p.inactive.middle = [ [ s:base1, s:base023 ] ] -let s:p.tabline.left = [ [ s:base3, s:base00 ] ] -let s:p.tabline.tabsel = [ [ s:base3, s:base03 ] ] -let s:p.tabline.middle = [ [ s:base2, s:base02 ] ] -let s:p.tabline.right = [ [ s:base2, s:base00 ] ] -let s:p.normal.error = [ [ s:base03, s:red ] ] -let s:p.normal.warning = [ [ s:base023, s:yellow ] ] - -let g:lightline#colorscheme#wombat#palette = lightline#colorscheme#flatten(s:p) diff --git a/vim/bundle/lightline.vim/autoload/lightline/colortable.vim b/vim/bundle/lightline.vim/autoload/lightline/colortable.vim deleted file mode 100644 index 82617b2..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/colortable.vim +++ /dev/null @@ -1,42 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/colortable.vim -" Author: itchyny -" License: MIT License -" Last Change: 2015/03/29 06:21:39. -" ============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! s:load() abort - let rgbfile = $VIMRUNTIME . '/rgb.txt' - let table = {} - if filereadable(rgbfile) - for _ in map(filter(readfile(rgbfile), 'v:val !~# "^!"'), 'matchlist(v:val, "^\\s*\\(\\d\\+\\)\\s\\+\\(\\d\\+\\)\\s\\+\\(\\d\\+\\)\\s\\+\\(.*\\)")[1:4]') - let table[tolower(_[3])] = _[0:2] - endfor - endif - return table -endfunction - -let s:table = s:load() - -function! lightline#colortable#name_to_rgb(name) abort - let name = tolower(a:name) - return has_key(s:table, name) ? s:table[name] : [] -endfunction - -function! lightline#colortable#gui2cui(rgb, fallback) abort - let rgb = map(matchlist(a:rgb, '#\(..\)\(..\)\(..\)')[1:3], '0 + ("0x".v:val)') - if len(rgb) == 0 - let rgb = lightline#colortable#name_to_rgb(a:rgb) - if len(rgb) == 0 - return a:fallback % 128 - endif - endif - 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 diff --git a/vim/bundle/lightline.vim/autoload/lightline/tab.vim b/vim/bundle/lightline.vim/autoload/lightline/tab.vim deleted file mode 100644 index f2accc1..0000000 --- a/vim/bundle/lightline.vim/autoload/lightline/tab.vim +++ /dev/null @@ -1,33 +0,0 @@ -" ============================================================================= -" Filename: autoload/lightline/tab.vim -" Author: itchyny -" License: MIT License -" Last Change: 2016/05/07 22:31:02. -" ============================================================================= - -let s:save_cpo = &cpo -set cpo&vim - -function! lightline#tab#filename(n) abort - let buflist = tabpagebuflist(a:n) - let winnr = tabpagewinnr(a:n) - let _ = expand('#'.buflist[winnr - 1].':t') - return _ !=# '' ? _ : '[No Name]' -endfunction - -function! lightline#tab#modified(n) abort - let winnr = tabpagewinnr(a:n) - return gettabwinvar(a:n, winnr, '&modified') ? '+' : gettabwinvar(a:n, winnr, '&modifiable') ? '' : '-' -endfunction - -function! lightline#tab#readonly(n) abort - let winnr = tabpagewinnr(a:n) - return gettabwinvar(a:n, winnr, '&readonly') ? 'RO' : '' -endfunction - -function! lightline#tab#tabnum(n) abort - return a:n -endfunction - -let &cpo = s:save_cpo -unlet s:save_cpo |