Purge out :echoe

`:echoe` is unstable: unless it is already in `:try`…`:catch` block
you never know for sure whether or not it will break execution.
Thus the only valid use for `:echoe` is

    try
        echoe 'Msg'
    endtry
: rough equivalent to `:throw` (throws, but with different message).
As this is probably not the thing you want to do
I changed it to use `:echomsg`.
This commit is contained in:
ZyX-I 2012-12-21 23:03:50 +04:00 committed by Kim Silkebækken
parent f423ba11c8
commit 2be52ed039
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
if ! has('python')
echoe 'You need vim compiled with Python 2 support for Powerline to work. Please consult the documentation for more details.'
echohl ErrorMsg
echomsg 'You need vim compiled with Python 2 support for Powerline to work. Please consult the documentation for more details.'
echohl None
finish
endif