improve g:loaded_lightline check and finish if v:version < 700

This commit is contained in:
itchyny
2014-12-24 14:46:58 +09:00
parent a7783e8c81
commit 983d3075c1

View File

@@ -3,12 +3,13 @@
" Version: 0.0
" Author: itchyny
" License: MIT License
" Last Change: 2014/06/11 14:12:52.
" Last Change: 2014/12/14 14:27:59.
" =============================================================================
if exists('g:loaded_lightline') && g:loaded_lightline
if exists('g:loaded_lightline') || v:version < 700
finish
endif
let g:loaded_lightline = 1
let s:save_cpo = &cpo
set cpo&vim
@@ -20,7 +21,5 @@ augroup LightLine
autocmd CursorMoved,BufUnload * call lightline#update_once()
augroup END
let g:loaded_lightline = 1
let &cpo = s:save_cpo
unlet s:save_cpo