1
0
mirror of https://github.com/amix/vimrc synced 2025-07-12 14:15:00 +08:00

fix(install): fix install method

This commit is contained in:
wangjun
2022-04-13 17:21:09 +08:00
parent af4c7947ab
commit 3e41778dc3
1582 changed files with 422 additions and 433 deletions

View File

@ -0,0 +1,33 @@
" =============================================================================
" Filename: plugin/lightline.vim
" Author: itchyny
" License: MIT License
" Last Change: 2020/11/05 20:05:40.
" =============================================================================
if exists('g:loaded_lightline') || v:version < 703
finish
endif
let g:loaded_lightline = 1
let s:save_cpo = &cpo
set cpo&vim
augroup lightline
autocmd!
autocmd WinEnter,BufEnter,BufDelete,SessionLoadPost,FileChangedShellPost * call lightline#update()
if !has('patch-8.1.1715')
autocmd FileType qf call lightline#update()
endif
autocmd SessionLoadPost * call lightline#highlight()
autocmd ColorScheme * if !has('vim_starting') || expand('<amatch>') !=# 'macvim'
\ | call lightline#update() | call lightline#highlight() | endif
augroup END
" This quickfix option was introduced at Vim 85850f3a5ef9, which is the commit
" just before 8.1.1715. Before this patch, autocmd FileType is required to
" overwrite the statusline of the quickfix and location windows.
let g:qf_disable_statusline = 1
let &cpo = s:save_cpo
unlet s:save_cpo