From 4d9f4ad091ede4add7c2b119bed7f2938a01d53c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 18 Mar 2014 06:02:43 +0400 Subject: [PATCH] Remove the redraw autocommand (it's only needed once) --- .vimrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.5