mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-13 05:53:51 -05:00
save cpo
This commit is contained in:
@@ -3,9 +3,12 @@
|
|||||||
" Version: 0.0
|
" Version: 0.0
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2013/09/07 16:22:56.
|
" Last Change: 2014/06/17 11:31:23.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
let s:cuicolor = {
|
let s:cuicolor = {
|
||||||
\ 'black' : 16,
|
\ 'black' : 16,
|
||||||
\ 'white' : 231,
|
\ 'white' : 231,
|
||||||
@@ -214,3 +217,6 @@ function! lightline#colorscheme#flatten(p)
|
|||||||
endfor
|
endfor
|
||||||
return a:p
|
return a:p
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|||||||
@@ -3,9 +3,12 @@
|
|||||||
" Version: 0.0
|
" Version: 0.0
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" 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()
|
function! s:load()
|
||||||
let rgbfile = $VIMRUNTIME . '/rgb.txt'
|
let rgbfile = $VIMRUNTIME . '/rgb.txt'
|
||||||
let table = {}
|
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]
|
let rgb = [rgb[0] > 127 ? 4 : 0, rgb[1] > 127 ? 2 : 0, rgb[2] > 127 ? 1 : 0]
|
||||||
return rgb[0] + rgb[1] + rgb[2]
|
return rgb[0] + rgb[1] + rgb[2]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|||||||
@@ -3,9 +3,12 @@
|
|||||||
" Version: 0.0
|
" Version: 0.0
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2013/09/07 18:25:26.
|
" Last Change: 2014/06/17 11:31:07.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
function! lightline#tab#filename(n)
|
function! lightline#tab#filename(n)
|
||||||
let buflist = tabpagebuflist(a:n)
|
let buflist = tabpagebuflist(a:n)
|
||||||
let winnr = tabpagewinnr(a:n)
|
let winnr = tabpagewinnr(a:n)
|
||||||
@@ -26,3 +29,6 @@ endfunction
|
|||||||
function! lightline#tab#tabnum(n)
|
function! lightline#tab#tabnum(n)
|
||||||
return a:n
|
return a:n
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|||||||
Reference in New Issue
Block a user