Vim Echo vs Echom vs EchoErr
If all you do in your Vim scripts is echo, the echo will fall on deaf ears pretty quickly because it will soon be overwritten by the next echo. Fortunately, Vim has “echom” which works in exactly the same way except that the output is saved into messages (accessed with :messages ). echoerr
goes a step further than echom
by highlighting the text as an error message.
The echo commands are not persistent across Vim sessions.