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