mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-14 14:33:51 -05:00
27 lines
692 B
VimL
27 lines
692 B
VimL
" =============================================================================
|
|
" Filename: plugin/lightline.vim
|
|
" Version: 0.0
|
|
" Author: itchyny
|
|
" License: MIT License
|
|
" Last Change: 2013/08/24 19:19:13.
|
|
" =============================================================================
|
|
|
|
if exists('g:loaded_lightline') && g:loaded_lightline
|
|
finish
|
|
endif
|
|
|
|
let s:save_cpo = &cpo
|
|
set cpo&vim
|
|
|
|
augroup LightLine
|
|
autocmd!
|
|
autocmd WinEnter,BufWinEnter,FileType,ColorScheme * call lightline#update()
|
|
autocmd ColorScheme * call lightline#highlight()
|
|
autocmd CursorMoved,BufUnload * call lightline#update_once()
|
|
augroup END
|
|
|
|
let g:loaded_lightline = 1
|
|
|
|
let &cpo = s:save_cpo
|
|
unlet s:save_cpo
|