From: Simon Ruderich Date: Tue, 20 Nov 2012 21:23:35 +0000 (+0100) Subject: vimrc: Use echoerr to warn about possible template files. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=35f1d8f86e839023a837fe978cd219fba168ff95;p=config%2Fdotfiles.git vimrc: Use echoerr to warn about possible template files. echohl WarningMsg ... echohl None doesn't always display the message, even with redraw. --- diff --git a/vimrc b/vimrc index 51aabef..5bc0894 100644 --- a/vimrc +++ b/vimrc @@ -927,9 +927,7 @@ if has('autocmd') return endif - echohl WarningMsg - echo 'Do not edit this file! (Maybe a template file.)' - echohl None + echoerr 'Do not edit this file! (Maybe a template file.)' endfunction autocmd BufRead * call SearchForDoNotEditHeader()