[Vimscript Cheat Sheets] (https://gist.github.com/vpayno/75355047b3708e040849)
To output a message to the screen type:
:echo "Hello World!"
Hello World!
:echo "Hello" "World!"
Hello World!
These messages are not persisted.
To use the systems echo command use !echo:
:!echo "Hello World!"
Hello World!
To output a message to the screen and to the message log type:
:echom "Hello World!"
Hello World!
To check the message list type:
:messages
Messages maintainer: Bram Moolenaar <[email protected]>
Hello World!
To output the parameters without anything added in between them use echon.
echon "Hello" "World!"
HelloWorld!
echoe[rr] is like echom but it displays an error message instead.