From c94bc3ba90669d0aa83e1af6baff0f6223012450 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 6 Jan 2021 00:21:37 +0000 Subject: [PATCH] Add autoloaded echomsg utility functions * `echo#warning({message})` sets `echohl WarningMsg` and echos the message * `echo#error({message})` sets `echohl ErrorMsg` and echos the message --- autoload/echo.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 autoload/echo.vim diff --git a/autoload/echo.vim b/autoload/echo.vim new file mode 100644 index 0000000..80dbc14 --- /dev/null +++ b/autoload/echo.vim @@ -0,0 +1,11 @@ +function! echo#warning(message) abort + echohl WarningMsg + echomsg a:message + echohl None +endfunction + +function! echo#error(message) abort + echohl ErrorMsg + echomsg a:message + echohl None +endfunction