aboutsummaryrefslogtreecommitdiff
path: root/vim/.vim/plugged/lightline.vim/plugin
diff options
context:
space:
mode:
authorKumar Damani <damani.kumar@gmail.com>2019-04-26 18:49:26 +0000
committerKumar Damani <damani.kumar@gmail.com>2019-04-26 18:49:26 +0000
commit5a6ed5fcb3b89d0c2b4e8ba2953c4ba806d4b171 (patch)
tree5be0c043b0c8d632e35a8b4ef7e23452b103b94d /vim/.vim/plugged/lightline.vim/plugin
parentaf821092fe78ef159d7cb6536bb006712dc01b9d (diff)
added vim dir
Diffstat (limited to 'vim/.vim/plugged/lightline.vim/plugin')
-rw-r--r--vim/.vim/plugged/lightline.vim/plugin/lightline.vim26
1 files changed, 26 insertions, 0 deletions
diff --git a/vim/.vim/plugged/lightline.vim/plugin/lightline.vim b/vim/.vim/plugged/lightline.vim/plugin/lightline.vim
new file mode 100644
index 0000000..fc8f598
--- /dev/null
+++ b/vim/.vim/plugged/lightline.vim/plugin/lightline.vim
@@ -0,0 +1,26 @@
+" =============================================================================
+" Filename: plugin/lightline.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2018/06/22 08:49:00.
+" =============================================================================
+
+if exists('g:loaded_lightline') || v:version < 700
+ finish
+endif
+let g:loaded_lightline = 1
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+augroup lightline
+ autocmd!
+ autocmd WinEnter,BufWinEnter,FileType,SessionLoadPost * call lightline#update()
+ autocmd SessionLoadPost * call lightline#highlight()
+ autocmd ColorScheme * if !has('vim_starting') || expand('<amatch>') !=# 'macvim'
+ \ | call lightline#update() | call lightline#highlight() | endif
+ autocmd CursorMoved,BufUnload * call lightline#update_once()
+augroup END
+
+let &cpo = s:save_cpo
+unlet s:save_cpo