Vim: Showing an error message from a Vim Script May 28, 2023 by Tarik I think you are looking for echoerr.