endfunction
command! -bang -nargs=0 -complete=file Iar call s:Iar(<f-args>)
-function! RefreshUI()
- if exists(':AirlineRefresh')
- AirlineRefresh
- else
- " Clear & redraw the screen, then redraw all statuslines.
- redraw!
- redrawstatus!
- endif
-endfunction
-
-
" Autocommands
if has('autocmd')
augroup expandtabs
augroup vimrc
autocmd!
- autocmd BufWritePost ~/.vim/vimrc source $MYVIMRC | :call RefreshUI()
- autocmd BufWritePost ~/.vim/gvimrc source $MYVIMRC | :call RefreshUI()
- autocmd BufWritePost ~/.vim/vimrc.local source $MYVIMRC | :call RefreshUI()
+ autocmd BufWritePost vimrc,gvimrc,vimrc.local source $MYVIMRC
augroup end
augroup quickfix