* `echo#warning({message})` sets `echohl WarningMsg` and echos the message * `echo#error({message})` sets `echohl ErrorMsg` and echos the message
12 lines
205 B
VimL
12 lines
205 B
VimL
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
|