g:loaded_lightline

This commit is contained in:
itchyny
2013-08-23 14:28:08 +09:00
parent 4cf3af65d1
commit 3a6c739465

View File

@@ -3,9 +3,13 @@
" Version: 0.0
" Author: itchyny
" License: MIT License
" Last Change: 2013/08/23 14:19:14.
" Last Change: 2013/08/23 14:27:31.
" =============================================================================
if exists('g:loaded_lightline') && g:loaded_lightline
finish
endif
let s:save_cpo = &cpo
set cpo&vim
@@ -16,5 +20,7 @@ augroup LightLine
autocmd CursorMoved,FileType,BufUnload * call lightline#update_once()
augroup END
let g:loaded_lightline = 1
let &cpo = s:save_cpo
unlet s:save_cpo