automatic vimrc reload

This commit is contained in:
Thomas Ruoff
2018-02-25 23:54:53 +01:00
parent 80b7476204
commit df593f6892

12
vimrc
View File

@@ -269,6 +269,12 @@ if filereadable(expand("~/.vim/lightline.vim"))
augroup END
endif
function! LightlineReload()
call lightline#init()
call lightline#colorscheme()
call lightline#update()
endfunction
"" Ultisnips
let g:UltiSnipsExpandTrigger="<c-j>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
@@ -330,5 +336,11 @@ function! HelpInNewTab ()
endif
endfunction
" Reloading vim
augroup VimReload
autocmd!
autocmd BufWritePost $MYVIMRC source $MYVIMRC | call LightlineReload()
augroup END
" }}}