vim Hello World


When attempting to print something for debugging in vimscript, it is tempting to simply do the following.

echo "Hello World!"

However, in the context of a complex plugin, there are often many other things happening right after you attempt to print your message, so it is important to add sleep after your message so you can actually see it before it disappears.

echo "Hello World!"
sleep 5