Back to Spacevim

vim#message API

docs/api/vim/message.md

2.4.0714 B
Original Source

Available APIs >> vim#message

<!-- vim-markdown-toc GFM --> <!-- vim-markdown-toc -->

Intro

vim#message API provides some basic functions to generate colored messages.

vim
let s:MSG = SpaceVim#api#import('vim#message)
call s:MSG.echom('String', 'hello world!')

Functions

here is a list of functions implement in this api.

function namedescription
echo(hl, msg)print message with hl highlight group
echom(hl, msg)run echom with hl highlight group
echon(hl, msg)run echon with hl highlight group