]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Use echoerr to warn about possible template files.
authorSimon Ruderich <simon@ruderich.org>
Tue, 20 Nov 2012 21:23:35 +0000 (22:23 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 20 Nov 2012 21:23:35 +0000 (22:23 +0100)
echohl WarningMsg ... echohl None doesn't always display the message,
even with redraw.

vimrc

diff --git a/vimrc b/vimrc
index 51aabeff5a5f7bdfd4ded89bee1cf59aa79b7b89..5bc0894bb96d27f5a174276aa8c84b13c7b57ec1 100644 (file)
--- 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 <SID>SearchForDoNotEditHeader()