X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vimrc;h=bf75518fcad5ae091449954f5664fed6b728080b;hb=80c6260ae2612ec45eb2f2abd1088a3a7eab10d6;hp=aed3f7f57d24363fda5e3b5cf943446d311899dc;hpb=f46bd4d41cc7f243bc8a321effee5200aa69e709;p=dotfiles.git diff --git a/.vimrc b/.vimrc index aed3f7f..bf75518 100644 --- a/.vimrc +++ b/.vimrc @@ -215,7 +215,7 @@ else highlight Question cterm=bold ctermfg=NONE endif - if (&term =~ "term") || (&term =~ "rxvt") || (&term =~ "vt100") || (&term =~ "screen") + if (&term =~ "rxvt") || (&term =~ "screen") || (&term =~ "term") || (&term =~ "vt100") set = " 'autoselect' to always put selected text on the clipboard; @@ -725,6 +725,14 @@ command! UName call Uname() endif " ---------- +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