improve doc

This commit is contained in:
itchyny
2013-08-22 14:36:29 +09:00
parent 5e9f0f31aa
commit 3f6fde46a4
2 changed files with 107 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
" Version: 0.0
" Author: itchyny
" License: MIT License
" Last Change: 2013/08/22 13:34:47.
" Last Change: 2013/08/22 14:21:34.
" =============================================================================
let s:save_cpo = &cpo
@@ -82,18 +82,18 @@ function! lightline#init()
for m in ['normal', 'insert', 'replace', 'visual', 'inactive']
let g:lightline.palette[m] = get(g:lightline.palette, m, {})
endfor
" try
try
let g:lightline.palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette
" catch
" call lightline#error('Colorscheme ' . g:lightline.colorscheme . ' could not loaded.')
" let g:lightline.colorscheme = 'default'
" let g:lightline.palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette
" finally
catch
call lightline#error('Colorscheme ' . g:lightline.colorscheme . ' could not loaded.')
let g:lightline.colorscheme = 'default'
let g:lightline.palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette
finally
for m in ['normal', 'insert', 'replace', 'visual', 'inactive', 'command']
call lightline#highlight(m)
endfor
" let s:_ = 0
" endtry
let s:_ = 0
endtry
endfunction
function! lightline#mode()