]> git.zndr.dk Git - vimfiles.git/commitdiff
Revert last
authorJannik ZANDER <jannikz@gmail.com>
Sun, 5 Aug 2018 05:10:57 +0000 (07:10 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Sun, 5 Aug 2018 05:10:57 +0000 (07:10 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 3154ddaa4ac618e274e961deeb7523bafc2b638d..59285d7dbf82bd665e8d25d8fd05cc0ea7c3140b 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -194,17 +194,6 @@ function! s:Iar()
 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
@@ -238,9 +227,7 @@ if has('autocmd')
 
   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