X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=.vimrc;h=bf75518fcad5ae091449954f5664fed6b728080b;hb=4d9f4ad091ede4add7c2b119bed7f2938a01d53c;hp=c7c26bddb2db44c57dc8bd11d391bf297e72ad25;hpb=4178e5a92276ad6eb75b7208c1858079a76380e8;p=dotfiles.git diff --git a/.vimrc b/.vimrc index c7c26bd..bf75518 100644 --- a/.vimrc +++ b/.vimrc @@ -725,7 +725,14 @@ command! UName call Uname() endif " ---------- -autocmd BufReadPost * redraw " Redraw screen after all macros +augroup redraw-once +autocmd! +" Redraw screen after all macros in ~/.vimrc and ~/.vim/ +autocmd BufReadPost * redraw +" Remove the redraw autocommand (it's only needed once) and the autgroup +autocmd BufReadPost * autocmd! redraw-once +autocmd BufReadPost * augroup! redraw-once +augroup END " This has to go to the very end of ~/.vimrc to allow reading the .vimrc set secure " safer working with script files in the current directory